diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2015-11-10 23:22:26 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-11-14 07:07:34 +0700 |
commit | 9b35a6da207c467a1fb2bcafe7cd23ea47e0f276 (patch) | |
tree | 3a84b02b61a27fcec0220e5b7f7c620dd47f7e0e /libraries/libb64/shared-library.patch | |
parent | 05d4adbc63c5b8b022fef487a0d30d6ff36aaf3f (diff) | |
download | slackbuilds-9b35a6da207c467a1fb2bcafe7cd23ea47e0f276.tar.gz |
libraries/libb64: Added (C routines for base64 encoding/decoding)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libb64/shared-library.patch')
-rw-r--r-- | libraries/libb64/shared-library.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libraries/libb64/shared-library.patch b/libraries/libb64/shared-library.patch new file mode 100644 index 0000000000..0cd2bf234f --- /dev/null +++ b/libraries/libb64/shared-library.patch @@ -0,0 +1,25 @@ +--- src/Makefile~ ++++ src/Makefile +@@ -1,4 +1,5 @@ +-LIBRARIES = libb64.a ++LIBRARIES = libb64.a libb64.so ++SOVERSION ?= 0 + + # Build flags (uncomment one) + ############################# +@@ -27,6 +28,15 @@ all: $(TARGETS) #strip + libb64.a: cencode.o cdecode.o + $(AR) $(ARFLAGS) $@ $^ + ++libb64.so.$(SOVERSION): cencode.So cdecode.So ++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $^ ++ ++%.So: %.c ++ $(CC) -fPIC -c $(CFLAGS) $(CPPFLAGS) $< -o $@ ++ ++%.so: %.so.$(SOVERSION) ++ ln -fs $< $@ ++ + strip: + strip $(BINARIES) *.exe + |