Changes between Initial Version and Version 2 of Ticket #32634


Ignore:
Timestamp:
Dec 23, 2011, 10:49:12 AM (12 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

The "-k" flag means keep the build files after installation; I suppose this is necessary for debugging.

The port currently forces the use of MacPorts gcc complier; I assume the maintainer has a good reason to do this and that we should not then offer the choice to override that.

Would just this work? (Untested)

variant debug {Build with debug symbols} { 
    configure.optflags-append -g 
}

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32634

    • Property Owner changed from macports-tickets@… to kjell.konis@…
    • Property Type changed from request to enhancement
  • Ticket #32634 – Description

    initial v2  
    11I want to build R with debug symbols so I can more easily debug my C extensions and how they interact with R. I modified the portfile to use apple's gcc and the -g flag. It installed fine, but it seems that the debug symbols aren't found by gdb.
    22
    3 1. What should I do so that when I compile with -g, the symbols can be found?
    4 2. Do I need to use apple's rather than the mp gcc to do this?
    5 3. I think other people might find this useful so it would be nice if the debug variant, after appropriate corrections can be added to the port.
     3 1. What should I do so that when I compile with -g, the symbols can be found?
     4 2. Do I need to use apple's rather than the mp gcc to do this?
     5 3. I think other people might find this useful so it would be nice if the debug variant, after appropriate corrections can be added to the port.
    66
    77I attach the port diff.