[gs-bugs] [Bug 693100] libgs.so gets built with _start etc with gcc 4.5.3

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Jun 11 07:08:17 UTC 2012


http://bugs.ghostscript.com/show_bug.cgi?id=693100

--- Comment #3 from Brian Modra <epailty at gmail.com> 2012-06-11 07:08:15 UTC ---
(In reply to comment #2)
> Please do not override the linker flag. In particular, I think
> "-Wl,--as-needed" is known not to work, so please do not do that.

It is a gentoo problem, so I'll report it to their bugzilla. Thanks for
pointing me in the right direction.

I just used the gentoo portage system to install the package without any
changes:
config.log:LDFLAGS='-Wl,-O1 -Wl,--as-needed'


./soobj/aux/echogs -w ./soobj/ldt.tr -n - x86_64-pc-linux-gnu-gcc -Wl,-O1
-Wl,--as-needed  -o ./sobin/libgs.so.9.04
./soobj/aux/echogs -a ./soobj/ldt.tr -n -s ./soobj/gsromfs0.o ./soobj/gs.o -s
cat ./soobj/ld.tr >>./soobj/ldt.tr
./soobj/aux/echogs -a ./soobj/ldt.tr -s - -ldl -lm  -lpaper -rdynamic -ldl
-lfontconfig   -lfreetype   -lpthread -lm
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
DEVICE_DEVS_EXTRA= \
/bin/sh <./soobj/ldt.tr
rm -f ./sobin/libgs.so.9
ln -s libgs.so.9.04 ./sobin/libgs.so.9
rm -f ./sobin/libgs.so
ln -s libgs.so.9.04 ./sobin/libgs.so

This is how ldt.tr looked before I added the -shared:

x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o ./sobin/libgs.so.9.05
./soobj/gsromfs0.o ./soobj/gs.o ./soobj/gp_getnv.o \
./soobj/gp_upapr.o \
./soobj/gp_unix.o \
./soobj/gp_unifs.o \
./soobj/gp_unifn.o \
...
./soobj/gsrop.o \
./soobj/gp_strdl.o \
-llcms2 \
-ltiff \
-ljpeg \
-lpng \
-ljbig2dec \
-lz \
 -ldl -lm -lpaper -ltiff -rdynamic -ldl -lfontconfig -lfreetype -lpthread -lm

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list