tripolar 001aad0b0c [packages] google-authenticator
rename patch

Signed-off-by: Peter Wagner <tripolar@gmx.at>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@38493 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-22 00:57:54 +00:00

23 lines
780 B
Diff

--- a/libpam/Makefile
+++ b/libpam/Makefile
@@ -18,16 +18,9 @@
.SUFFIXES: .so
-ifeq ($(origin CC), default)
- CC := gcc
-endif
-
-DEF_CFLAGS := $(shell [ `uname` = SunOS ] && \
- echo ' -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT') \
- -fvisibility=hidden $(CFLAGS)
-DEF_LDFLAGS := $(shell [ `uname` = SunOS ] && echo ' -mimpure-text') $(LDFLAGS)
-LDL_LDFLAGS := $(shell $(CC) -shared -ldl -xc -o /dev/null /dev/null \
- >/dev/null 2>&1 && echo ' -ldl')
+DEF_CFLAGS := -fvisibility=hidden $(CFLAGS)
+DEF_LDFLAGS := $(LDFLAGS)
+LDL_LDFLAGS := '-ldl'
all: google-authenticator pam_google_authenticator.so demo \
pam_google_authenticator_unittest