--- Makefile.in 2013-03-06 20:12:39.220253693 +0100 +++ Makefile.in 2013-03-06 20:14:03.700385148 +0100 @@ -49,7 +49,7 @@ export CFLAGS CC SHLIB_LD SHLIB_CFLAGS SHLIB_SUFFIX DOBJS MOBJS MSRCS INSTALL INSTALLDIR MLIBS DLIBS EXTRALIBS %.o : %.c - $(CC) $(CFLAGS) $(DYNAMIC) $(CPPFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) $(LDFLAGS) $(DYNAMIC) $(CPPFLAGS) -c $< -o $@ ########################### don't edit below ####################### @@ -80,4 +80,4 @@ rm -f *.a *.out *.o *.so *.bak config.log config.cache config.status config.h Makefile include/config.h .c.o: - $(CC) -c $(CFLAGS) $< + $(CC) -c $(CFLAGS) $(LDFLAGS) $< --- smbval/Makefile 2000-08-19 21:58:03.000000000 +0200 +++ smbval/Makefile 2013-03-06 20:22:52.721212643 +0100 @@ -27,7 +27,7 @@ .c.o: $(INCLUDES) @echo Compiling $*.c - $(CC) -I../include $(CFLAGS) -c $*.c + $(CC) -I../include $(CFLAGS) $(LDFLAGS) -c $*.c clean: rm -f *.o smbvalid.a --- pamsmbd/Makefile 2002-04-12 13:01:23.000000000 +0200 +++ pamsmbd/Makefile 2013-03-06 21:45:29.398977718 +0100 @@ -4,11 +4,11 @@ INCLUDE = -I../include -I../tdb -CFLAGS += ${INCLUDE} +CFLAGS += $(LDFLAGS) ${INCLUDE} TARGET = pamsmbd ${TARGET}: ${OBJS} ../smbval/smbvalid.a ../tdb/tdb.o ../tdb/spinlock.o - $(CC) -g -o ${TARGET} ${INCLUDE} ${OBJS} ../tdb/tdb.o ../tdb/spinlock.o ../smbval/smbvalid.a $(DLIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -g -o ${TARGET} ${INCLUDE} ${OBJS} ../tdb/tdb.o ../tdb/spinlock.o ../smbval/smbvalid.a $(DLIBS) clean: rm -f ${TARGET} ${OBJS} --- pamsmbd/Makefile.crypt 2001-01-30 15:59:31.000000000 +0100 +++ pamsmbd/Makefile.crypt 2013-03-06 21:45:33.728984495 +0100 @@ -4,11 +4,11 @@ INCLUDE = -I../include -I../tdb -CFLAGS += ${INCLUDE} -Wall +CFLAGS += $(LDFLAGS) ${INCLUDE} -Wall TARGET = pamsmbd ${TARGET}: ${OBJS} ../smbval/smbvalid.a ../tdb/tdb.o - $(CC) -DCRYPT -g -o ${TARGET} ${INCLUDE} ${OBJS} ../tdb/tdb.o ../smbval/smbvalid.a $(DLIBS) -lcrypt + $(CC) $(CFLAGS) $(LDFLAGS) -DCRYPT -g -o ${TARGET} ${INCLUDE} ${OBJS} ../tdb/tdb.o ../smbval/smbvalid.a $(DLIBS) -lcrypt clean: rm -f ${TARGET} ${OBJS} --- pamsmbd/Makefile.md5 2001-01-30 15:59:31.000000000 +0100 +++ pamsmbd/Makefile.md5 2013-03-06 21:45:31.128980422 +0100 @@ -4,11 +4,11 @@ INCLUDE = -I../include -I../tdb -CFLAGS += ${INCLUDE} -Wall +CFLAGS += $(LDFLAGS) ${INCLUDE} -Wall TARGET = pamsmbd ${TARGET}: ${OBJS} ../smbval/smbvalid.a ../tdb/tdb.o - $(CC) -g -o ${TARGET} ${INCLUDE} ${OBJS} ../tdb/tdb.o ../smbval/smbvalid.a $(DLIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -g -o ${TARGET} ${INCLUDE} ${OBJS} ../tdb/tdb.o ../smbval/smbvalid.a $(DLIBS) clean: rm -f ${TARGET} ${OBJS} --- pamsmbm/Makefile 2002-04-12 13:01:23.000000000 +0200 +++ pamsmbm/Makefile 2013-03-06 22:36:21.893757530 +0100 @@ -4,7 +4,7 @@ # # -CFLAGS = -DHAVE_CONFIG_H -I../include -I.. +INCLUDE = -DHAVE_CONFIG_H -I../include -I.. LIBAUTHSH = pam_smb_auth$(SHLIB_SUFFIX) @@ -16,7 +16,7 @@ LIBSHARED = $(LIBAUTHSH) %.o : %.c - $(CC) $(CFLAGS) $(SHLIB_CFLAGS) $(DYNAMIC) $(CPPFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) $(INCLUDE) $(LDFLAGS) $(SHLIB_CFLAGS) $(DYNAMIC) $(CPPFLAGS) -c $< -o $@ ########################### don't edit below ####################### @@ -26,12 +26,12 @@ all: $(LIBSHARED) Makefile smb_auth: smb_auth.o - gcc -o smb_auth smb_auth.o queue_valid.o ../smbval/smbvalid.a + $(CC) $(CFLAGS) $(INCLUDE) $(LDFLAGS) -o smb_auth smb_auth.o queue_valid.o ../smbval/smbvalid.a $(LIBOBJD): $(LIBSRC) $(LIBAUTHSH): $(LIBAUTHSRC) $(LIBOBJ) - $(SHLIB_LD) $(LD_FLAGS) -o $@ $(LIBAUTHOBJ) $(EXTRALIBS) + $(SHLIB_LD) $(CFLAGS) $(LDFLAGS) -o $@ $(LIBAUTHOBJ) $(EXTRALIBS) clean: rm -f $(LIBAUTHSH) $(LIBAUTHOBJ) a.out core *~ @@ -43,4 +43,4 @@ rm -f *.a *.out *.o *.so .c.o: - $(CC) -c $(CFLAGS) $< + $(CC) -c $(CFLAGS) $(INCLUDE) $(LDFLAGS) $<