Comment 1 for bug 237308

Revision history for this message
peterh (peter-holik) wrote :

I found the problem:

instead of "ld --shared" "gcc -shared" has to be used

--- Makefile.orig 2008-06-05 16:48:05.000000000 +0200
+++ Makefile 2008-06-05 16:46:05.000000000 +0200
@@ -3,7 +3,7 @@
 CC=gcc
 CFLAGS=-fPIC -O2 -Wall -Werror -pedantic
 CPPFLAGS=-I.
-LDFLAGS=-x --shared -lpam
+LDFLAGS=-shared -lpam
 DESTDIR=/

 OUT=pam_chroot.so
@@ -12,7 +12,7 @@
 all: $(OUT)

 %.so: %.o
- ld $(LDFLAGS) -o $@ $<
+ gcc $(LDFLAGS) -o $@ $<

 clean:
        rm -f *.o $(OUT)