Opened 5 years ago

Last modified 3 years ago

#48983 new enhancement

portconfigure.tcl : fix for building on Linux

Reported by: RJVB (René Bertin) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.3.3
Keywords: haspatch Cc: mojca (Mojca Miklavec)
Port:

Description

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).

Attachments (1)

portconfigure.diff (582 bytes) - added by RJVB (René Bertin) 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by RJVB (René Bertin)

Attachment: portconfigure.diff added

comment:1 Changed 5 years ago by raimue (Rainer Müller)

This makes darwin a special case and linux the general case. It should probably be the other way around.

comment:2 Changed 4 years ago by mkae (Marko Käning)

Cc: mkae added

comment:3 Changed 3 years ago by mojca (Mojca Miklavec)

Cc: mojca added
Note: See TracTickets for help on using tickets.