--- cocom-0.996/configure.orig 2007-02-08 19:25:24.000000000 +0100 +++ cocom-0.996/configure 2009-09-01 20:21:04.000000000 +0200 @@ -5474,7 +5474,7 @@ Linux*) GCC_FPIC=-fPIC LIB_SUFFIX=so - MAKELIB="gcc -shared -Wl,-soname,\\\$\$0 -o \\\$\$0" + MAKELIB="$CC $LDFLAGS -shared -Wl,-soname,\\\$\$0 -o \\\$\$0" AFTER_MAKELIB="echo \\\$\$0" # The following option is needed if we use no shared dino library but # shared external library