From: Peter Wagner <​tripolar@gmx.at> Date: Tue, 22 Oct 2013 00:57:54 +0000 (+0000) Subject: [packages] google-authenticator X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=e007c32ac1781a8789e19d2df2fa888cd7bb0c67;p=openwrt%2Fsvn-archive%2Farchive.git [packages] google-authenticator rename patch Signed-off-by: Peter Wagner SVN-Revision: 38493 --- diff --git a/libs/google-authenticator/patches/000-ld.patch b/libs/google-authenticator/patches/000-ld.patch new file mode 100644 index 0000000000..963b1c00c4 --- /dev/null +++ b/libs/google-authenticator/patches/000-ld.patch @@ -0,0 +1,22 @@ +--- 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 diff --git a/libs/google-authenticator/patches/000-makefile-fix b/libs/google-authenticator/patches/000-makefile-fix deleted file mode 100644 index 963b1c00c4..0000000000 --- a/libs/google-authenticator/patches/000-makefile-fix +++ /dev/null @@ -1,22 +0,0 @@ ---- 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