[MacPorts] #48983: portconfigure.tcl : fix for building on Linux

MacPorts noreply at macports.org
Sun Sep 27 09:15:10 PDT 2015


#48983: portconfigure.tcl : fix for building on Linux
-------------------------+--------------------------------
 Reporter:  rjvbertin@…  |      Owner:  macports-tickets@…
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  base         |    Version:  2.3.3
 Keywords:  haspatch     |       Port:
-------------------------+--------------------------------
 This patch addresses 2 issues when using MacPorts on Linux:

 MacPorts base sets the -headerpad_max_install_names linker option which is
 OS X specific (and ends up as a "eaderpad_max_install_names" dependency in
 binaries). It also seems Linux really should have
 `-Wl,-rpath,${prefix}/lib` in the LDFLAGS as its not the default to
 generate binaries (shared libraries) with full rpath info on that
 platform. Without that option, libraries only have their name (relative
 rpath without any path info at all) stored, and that means the dynamic
 loader will fetch the 1st library that matches the filename.
 The alternative is adding ${prefix}/lib to the default LD_LIBRARY_PATH,
 but that's not a good idea (trivial to set, less so to unset).

-- 
Ticket URL: <https://trac.macports.org/ticket/48983>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list