| |
| |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| options {} |
|
|
| |
| define SHOBJ_CFLAGS -fPIC |
| define SHOBJ_LDFLAGS -shared |
| define SH_CFLAGS -fPIC |
| define SH_LDFLAGS -shared |
| define SH_LINKFLAGS -rdynamic |
| define SH_LINKRPATH "-Wl,-rpath -Wl,%s" |
| define SH_SOEXT .so |
| define SH_SOEXTVER .so.%s |
| define SH_SOPREFIX -Wl,-soname, |
| define LD_LIBRARY_PATH LD_LIBRARY_PATH |
| define STRIPLIBFLAGS --strip-unneeded |
|
|
| |
| |
|
|
| switch -glob -- [get-define host] { |
| *-*-darwin* { |
| define SHOBJ_CFLAGS "-dynamic -fno-common" |
| define SHOBJ_LDFLAGS "-bundle -undefined dynamic_lookup" |
| define SHOBJ_LDFLAGS_R -bundle |
| define SH_CFLAGS -dynamic |
| define SH_LDFLAGS -dynamiclib |
| define SH_LINKFLAGS "" |
| define SH_SOEXT .dylib |
| define SH_SOEXTVER .%s.dylib |
| define SH_SOPREFIX -Wl,-install_name, |
| define SH_SOFULLPATH |
| define LD_LIBRARY_PATH DYLD_LIBRARY_PATH |
| define STRIPLIBFLAGS -x |
| } |
| *-*-ming* - *-*-cygwin - *-*-msys { |
| define SHOBJ_CFLAGS "" |
| define SHOBJ_LDFLAGS -shared |
| define SH_CFLAGS "" |
| define SH_LDFLAGS -shared |
| define SH_LINKRPATH "" |
| define SH_LINKFLAGS "" |
| define SH_SOEXT .dll |
| define SH_SOEXTVER .dll |
| define SH_SOPREFIX "" |
| define LD_LIBRARY_PATH PATH |
| } |
| sparc* { |
| if {[msg-quiet cc-check-decls __SUNPRO_C]} { |
| msg-result "Found sun stdio compiler" |
| |
| |
| define SHOBJ_CFLAGS -KPIC |
| define SHOBJ_LDFLAGS "-G" |
| define SH_CFLAGS -KPIC |
| define SH_LINKFLAGS -Wl,-export-dynamic |
| define SH_SOPREFIX -Wl,-h, |
| } |
| } |
| *-*-solaris* { |
| if {[msg-quiet cc-check-decls __SUNPRO_C]} { |
| msg-result "Found sun stdio compiler" |
| |
| |
| define SHOBJ_CFLAGS -KPIC |
| define SHOBJ_LDFLAGS "-G" |
| define SH_CFLAGS -KPIC |
| define SH_LINKFLAGS -Wl,-export-dynamic |
| define SH_SOPREFIX -Wl,-h, |
| } |
| } |
| *-*-hpux* { |
| define SHOBJ_CFLAGS +z |
| define SHOBJ_LDFLAGS -b |
| define SH_CFLAGS +z |
| define SH_LDFLAGS -b |
| define SH_LINKFLAGS -Wl,+s |
| define SH_LINKRPATH "-Wl,+b -Wl,%s" |
| define SH_SOPREFIX -Wl,+h, |
| define STRIPLIBFLAGS -Wl,-s |
| } |
| *-*-haiku { |
| define SHOBJ_CFLAGS "" |
| define SHOBJ_LDFLAGS -shared |
| define SH_CFLAGS "" |
| define SH_LDFLAGS -shared |
| define SH_LINKFLAGS "" |
| define SH_SOPREFIX "" |
| define LD_LIBRARY_PATH LIBRARY_PATH |
| } |
| } |
|
|
| if {![is-defined SHOBJ_LDFLAGS_R]} { |
| define SHOBJ_LDFLAGS_R [get-define SHOBJ_LDFLAGS] |
| } |
|
|