Comment 2 for bug 1039618

Revision history for this message
Martin Pitt (pitti) wrote :

I compared the gcc command lines for postgres.c between Debian's and Ubuntu's i386 builds. For the compilation stage (-c) there are no significant differences (just the path of the build directories, which appear in -I). For linking, the difference is that Ubuntu drops "-L/usr/lib" and "-lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5", which seems to come from Ubuntu doing the -Wl,--as-needed linking option by default, and Ubuntu adding "-Wl,-Bsymbolic-functions" which comes from our changed dpkg-buildflags as I pointed out in the previous comment.

Neither Ubuntu nor Debian use -pie, but they both use -fPIC during compiling and linking.