Opened 6 years ago

Last modified 13 months ago

#776 new enhancement

shared lib link arguments in makefile are not transmitted to eggs

Reported by: zbigniew Owned by:
Priority: not urgent at all Milestone:
Component: build system Version: 4.7.x
Keywords: Cc:
Estimated difficulty: medium

Description

Linker options for shared libraries are all hardcoded in csc (or passed in via CSC_OPTIONS) -- any options set in the Makefile, e.g. via LINKER_LINK_SHARED_DLOADABLE_OPTIONS, are not honored.

Specifically, on OS X, the -headerpad 128 option is used to reserve extra space for install_name_tool to do its work. Without it, egg installation may fail once the Chicken PREFIX gets too long.

The current workaround is to set CSC_OPTIONS='-Wl,-headerpad -Wl,128' prior to calling chicken-install.

It might be nice to add variables into the makefile which are accessible by csc and used to provide default link options to eggs. This should also allow some of the hardcoded options in csc to be moved out into the Makefiles.

Change History (1)

comment:1 Changed 13 months ago by sjamaan

  • Estimated difficulty set to medium
Note: See TracTickets for help on using tickets.