summaryrefslogtreecommitdiffstats
path: root/opensuse/core/tdebase/kdm-use-rpmoptflags.diff
diff options
context:
space:
mode:
Diffstat (limited to 'opensuse/core/tdebase/kdm-use-rpmoptflags.diff')
-rw-r--r--opensuse/core/tdebase/kdm-use-rpmoptflags.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/opensuse/core/tdebase/kdm-use-rpmoptflags.diff b/opensuse/core/tdebase/kdm-use-rpmoptflags.diff
new file mode 100644
index 000000000..85a03e02b
--- /dev/null
+++ b/opensuse/core/tdebase/kdm-use-rpmoptflags.diff
@@ -0,0 +1,29 @@
+Index: kdm/backend/Makefile.am
+===================================================================
+--- kdm/backend/Makefile.am.orig
++++ kdm/backend/Makefile.am
+@@ -1,11 +1,6 @@
+ # forcibly remove thread-related defines & flags
+ AUTOMAKE_OPTIONS = foreign
+-CFLAGS = $(XDM_CFLAGS) -fno-strict-aliasing
+-CPPFLAGS = $(USER_INCLUDES) $(X_INCLUDES) $(KRB4_INCS) $(KRB5_INCS) -I.. -I../..
+-LDFLAGS = $(USER_LDFLAGS) $(X_LDFLAGS) $(X_RPATH) $(KRB4_RPATH) $(KRB5_RPATH)
+-LDADD = $(LIB_X11) -lXau $(LIBXDMCP) $(PASSWDLIBS) $(LIBSHADOW) $(LIBGEN) \
+- $(LIB_LIBS) $(KRB4_LIBS) $(KRB5_LIBS) $(LIBSOCKET) $(LIBRESOLV) \
+- $(LIBUCB) $(LIBUTIL) $(LIBPOSIX4)
++AM_CPPFLAGS = $(USER_INCLUDES) $(X_INCLUDES) $(KRB4_INCS) $(KRB5_INCS) -I.. -I../..
+
+ bin_PROGRAMS = kdm
+ kdm_SOURCES = \
+@@ -39,6 +34,11 @@ kdm_SOURCES = \
+ xdmauth.c \
+ xdmcp.c
+
++kdm_LDFLAGS = $(USER_LDFLAGS) $(X_LDFLAGS) $(X_RPATH) $(KRB4_RPATH) $(KRB5_RPATH)
++kdm_LDADD = $(LIB_X11) -lXau $(LIBXDMCP) $(PASSWDLIBS) \
++ $(LIB_LIBS) $(KRB4_LIBS) $(KRB5_LIBS) $(LIBSOCKET) $(LIBRESOLV) \
++ $(LIBUCB) $(LIBUTIL) $(LIBPOSIX4)
++
+ EXTRA_DIST = printf.c
+
+ noinst_HEADERS = dm.h dm_socket.h dm_error.h dm_auth.h greet.h