]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs: 849545
authorThorsten Kukuk <kukuk@thkukuk.de>
Wed, 26 Nov 2003 10:31:10 +0000 (10:31 +0000)
committerThorsten Kukuk <kukuk@thkukuk.de>
Wed, 26 Nov 2003 10:31:10 +0000 (10:31 +0000)
Purpose of commit: bugfix/cleanup

Commit summary:
---------------
CFLAGS from configure run is ignored by Make.Rules.
modules should build after libpam, so that we can link against libpam.
In one place, "ar" instead of "$(AR)" is used.

Make.Rules.in
Makefile
libpam/Makefile

index 2aab9bf98d4a2ad5a651ef5e6e6c99849c78c2d8..06c97f0a2519dde749a0be574ab56d01fd0a1c35 100644 (file)
@@ -92,7 +92,7 @@ CRACKLIB_DICTPATH=@CRACKLIB_DICTPATH@
 # generic build setup
 OS=@OS@
 CC=@CC@
-CFLAGS=$(WARNINGS) -D$(OS) $(OS_CFLAGS) $(HEADER_DIRS) @CONF_CFLAGS@
+CFLAGS=@CFLAGS@ $(WARNINGS) -D$(OS) $(OS_CFLAGS) $(HEADER_DIRS) @CONF_CFLAGS@
 LD=@LD@
 LD_D=@LD_D@
 LD_L=@LD_L@
index d4afd22143913afbbf721b1623dc0fe29e256c9f..1ab1b711ae2689c21957e7a3498f964b9b182dc8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ ifeq ($(shell test \! -f Make.Rules || echo yes),yes)
     include Make.Rules
 endif
 
-THINGSTOMAKE = modules libpam libpamc libpam_misc doc examples
+THINGSTOMAKE = libpam libpamc libpam_misc modules doc examples
 
 all: $(THINGSTOMAKE)
 
index d87cb028855d0c744fb6d2bf45e797d041b22676..e2b9649ef1a9928f399b8d55c366a0c598d0b58e 100644 (file)
@@ -112,7 +112,7 @@ endif
 
 $(LIBPAMSTATIC): $(SLIBOBJECTS)
 ifeq ($(STATIC_LIBPAM),yes)
-       ar cr $@ $(SLIBOBJECTS) $(MODULES)
+       $(AR) cr $@ $(SLIBOBJECTS) $(MODULES)
        $(RANLIB) $@
 endif