5 Patch-ID: readline52-012
7 Bug-Reported-by: Chet Ramey <chet.ramey@case.edu>
13 This updates the options required to create shared libraries on several
14 systems, including Mac OS X 10.5 (darwin9.x), FreeBSD, NetBSD, OpenBSD,
19 *** ../readline-5.2-patched/support/shobj-conf 2006-04-11 09:15:43.000000000 -0400
20 --- support/shobj-conf 2007-12-06 23:46:41.000000000 -0500
25 ! # Copyright (C) 1996-2002 Free Software Foundation, Inc.
27 # This program is free software; you can redistribute it and/or modify
31 ! # Copyright (C) 1996-2007 Free Software Foundation, Inc.
33 # This program is free software; you can redistribute it and/or modify
38 ! freebsd2* | netbsd*)
50 freebsd[3-9]*|freebsdelf[3-9]*|freebsdaout[3-9]*|dragonfly*)
56 freebsd[3-9]*|freebsdelf[3-9]*|freebsdaout[3-9]*|dragonfly*)
65 SHOBJ_STATUS=supported
66 SHLIB_STATUS=supported
71 SHOBJ_STATUS=supported
72 SHLIB_STATUS=supported
77 ! SHOBJ_LDFLAGS='-undefined dynamic_lookup'
78 SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
83 ! SHOBJ_LDFLAGS='-dynamiclib -dynamic -undefined dynamic_lookup -arch_only `/usr/bin/arch`'
84 SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
90 ! darwin[78]*) SHOBJ_LDFLAGS=''
91 SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
96 ! darwin[789]*) SHOBJ_LDFLAGS=''
97 SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
116 ! aix4.[2-9]*-*gcc*) # lightly tested by jik@cisco.com
122 ! aix4.[2-9]*-*gcc*|aix[5-9].*-*gcc*) # lightly tested by jik@cisco.com
135 ! aix4.[2-9]*|aix[5-9].*)
140 # if you have problems linking here, moving the `-Wl,+h,$@' from
141 # SHLIB_XLDFLAGS to SHOBJ_LDFLAGS has been reported to work
142 ! SHOBJ_LDFLAGS='-shared -Wl,-b -Wl,+s'
144 SHLIB_XLDFLAGS='-Wl,+h,$@ -Wl,+b,$(libdir)'
146 # if you have problems linking here, moving the `-Wl,+h,$@' from
147 # SHLIB_XLDFLAGS to SHOBJ_LDFLAGS has been reported to work
148 ! SHOBJ_LDFLAGS='-shared -fpic -Wl,-b -Wl,+s'
150 SHLIB_XLDFLAGS='-Wl,+h,$@ -Wl,+b,$(libdir)'