Use -fPIC with linking, from bryan may and Russ Allbery
authorLove Hörnquist Åstrand <lha@kth.se>
Mon, 18 Aug 2008 13:53:03 +0000 (13:53 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Mon, 18 Aug 2008 13:53:03 +0000 (13:53 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23622 ec53bebd-3082-4978-b11e-865c3cabbd6b

cf/version-script.m4

index f33601a2651509e926ddce45c8f11ba2a6d765a8..f08e01344f3f37d6c9c6a6e0996cc862ddda8a5f 100644 (file)
@@ -16,7 +16,7 @@ cat > conftest.c <<EOF
 int gss_init_creds(int foo) { return 0; }
 EOF
 
-  if AC_TRY_COMMAND([${CC-cc} -c $CFLAGS conftest.c])  && 
+  if AC_TRY_COMMAND([${CC-cc} -c $CFLAGS -fPIC conftest.c])  && 
      AC_TRY_COMMAND([${CC-cc} -shared -Wl,--version-script,conftest.map $CFLAGS $LDFLAGS -o libconftestlib.so conftest.o]);
   then
     rk_cv_version_script=yes