[packages] google-authenticator
authorPeter Wagner <​tripolar@gmx.at>
Tue, 22 Oct 2013 00:57:54 +0000 (00:57 +0000)
committerPeter Wagner <​tripolar@gmx.at>
Tue, 22 Oct 2013 00:57:54 +0000 (00:57 +0000)
rename patch

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

libs/google-authenticator/patches/000-ld.patch [new file with mode: 0644]
libs/google-authenticator/patches/000-makefile-fix [deleted file]

diff --git a/libs/google-authenticator/patches/000-ld.patch b/libs/google-authenticator/patches/000-ld.patch
new file mode 100644 (file)
index 0000000..963b1c0
--- /dev/null
@@ -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 (file)
index 963b1c0..0000000
+++ /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