Opened 12 years ago

Last modified 5 months ago

#776 new enhancement

shared lib link arguments in makefile are not transmitted to eggs

Reported by: Jim Ursetto Owned by:
Priority: not urgent at all Milestone: someday
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 (2)

comment:1 Changed 8 years ago by sjamaan

Estimated difficulty: medium

comment:2 Changed 5 months ago by felix winkelmann

Milestone: someday
Note: See TracTickets for help on using tickets.