summaryrefslogtreecommitdiffstats
path: root/opensuse/core/tdebase/kdm-use-rpmoptflags.diff
blob: 85a03e02b3225d02f69ff57c7fed43abd1b27256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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