[MacPorts] #48983: portconfigure.tcl : fix for building on Linux
#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
#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 Resolution: | Keywords: haspatch Port: | --------------------------+-------------------------------- Comment (by raimue@…): This makes `darwin` a special case and `linux` the general case. It should probably be the other way around. -- Ticket URL: <https://trac.macports.org/ticket/48983#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts