File autofs-suse-build.patch of Package autofs

Index: autofs-5.0.6/Makefile.conf.in
===================================================================
--- autofs-5.0.6.orig/Makefile.conf.in
+++ autofs-5.0.6/Makefile.conf.in
@@ -7,6 +7,8 @@
 # build autofs.
 #
 
+CFLAGS = $(LOCAL_CFLAGS)
+
 # Do we build with -fpie?
 DAEMON_CFLAGS  = @DAEMON_CFLAGS@
 DAEMON_LDFLAGS = @DAEMON_LDFLAGS@
Index: autofs-5.0.6/daemon/Makefile
===================================================================
--- autofs-5.0.6.orig/daemon/Makefile
+++ autofs-5.0.6/daemon/Makefile
@@ -30,7 +30,7 @@ endif
 all: automount
 
 automount: $(OBJS) $(AUTOFS_LIB)
-	$(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS)
+	$(CC) $(CFLAGS) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS)
 	$(STRIP) automount
 
 clean:
Index: autofs-5.0.6/Makefile.rules
===================================================================
--- autofs-5.0.6.orig/Makefile.rules
+++ autofs-5.0.6/Makefile.rules
@@ -44,8 +44,7 @@ CXXFLAGS  = $(CFLAGS)
 LD        = ld
 SOLDFLAGS = -shared
 
-CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64
-LDFLAGS += -lpthread
+CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64 -pthread
 
 ifdef TIRPCLIB
 CFLAGS += -I/usr/include/tirpc
openSUSE Build Service is sponsored by