diff options
author | Steve Langasek <vorlon@debian.org> | 2003-07-13 18:41:04 +0000 |
---|---|---|
committer | Steve Langasek <vorlon@debian.org> | 2003-07-13 18:41:04 +0000 |
commit | 2f36c829822a4b016ba075575c720ad9cb3c6463 (patch) | |
tree | 51b4a20becbd7b9d92b6bc0d73565a438525265d /libpam | |
parent | eaffa5288f918a542c5322b79975793efc1b3a10 (diff) | |
download | pam-2f36c829822a4b016ba075575c720ad9cb3c6463.tar.gz pam-2f36c829822a4b016ba075575c720ad9cb3c6463.tar.bz2 pam-2f36c829822a4b016ba075575c720ad9cb3c6463.zip |
Relevant BUGIDs: 643357
Purpose of commit: bugfix
Commit summary:
---------------
Patch from Sam Hartman to fix handling of module linking on Linux:
modules should be linked against libpam if they call any functions from
the library, since not all platforms will correctly resolve symbol
references otherwise. Also, make sure we use gcc, not ld, when linking,
since there's additional linker glue that gcc will pull in for us.
Diffstat (limited to 'libpam')
-rw-r--r-- | libpam/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libpam/Makefile b/libpam/Makefile index cf49f627..d87cb028 100644 --- a/libpam/Makefile +++ b/libpam/Makefile @@ -10,6 +10,8 @@ MOREFLAGS=-D"DEFAULT_MODULE_PATH=\"$(SECUREDIR)/\"" ifeq ($(WITH_LIBDEBUG),yes) LIBNAME=libpamd + CFLAGS += -D"DEBUG" + CFLAGS += -g else LIBNAME=libpam endif @@ -37,7 +39,7 @@ LIBPAMFULL = $(LIBPAMNAME)$(MODIFICATION) LIBPAMSTATIC = $(LIBNAME).a ifdef STATIC -@echo Did you mean to set STATIC\? +# @echo Did you mean to set STATIC\? MODULES = $(shell cat ../modules/_static_module_objects) STATICOBJ = pam_static.o else @@ -88,6 +90,9 @@ dynamic/%.o : %.c static/%.o : %.c $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@ +bootstrap-libpam: bootdir $(LIBPAM) +bootdir: + test -d dynamic || mkdir dynamic $(LIBPAM): $(DLIBOBJECTS) ifeq ($(DYNAMIC_LIBPAM),yes) |