[Python-modules-commits] [cf-python] 04/06: Improve umread building and handling.

Klaus Zimmermann zklaus-guest at moszumanska.debian.org
Thu Sep 22 13:02:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

zklaus-guest pushed a commit to branch master
in repository cf-python.

commit 2df311662c4215485183da69902d6b3e352aa79a
Author: Klaus Zimmermann <klaus_zimmermann at gmx.de>
Date:   Wed Sep 21 17:01:37 2016 +0200

    Improve umread building and handling.
    
    Signed-off-by: Klaus Zimmermann <klaus_zimmermann at gmx.de>
---
 cf/um/umread/c-lib/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cf/um/umread/c-lib/Makefile b/cf/um/umread/c-lib/Makefile
index bc6d336..0b69f96 100644
--- a/cf/um/umread/c-lib/Makefile
+++ b/cf/um/umread/c-lib/Makefile
@@ -5,7 +5,7 @@ LIBRARY=umfile.so
 CC=gcc
 CFLAGS=-Wall -fPIC -g
 CPP=gcc -E -P
-LD=ld
+LD=gcc
 LDFLAGS=-shared
 OBJS = umfile.o error.o filetype.o \
 	malloc.o linklist.o new_structs.o swap.o
@@ -28,7 +28,8 @@ type-dep:
 	$(MAKE) -C $(TYPE_DEP_DIR)
 
 $(LIBRARY): $(OBJS) type-dep
-	$(LD) $(LDFLAGS) -o $@ $(OBJS) --whole-archive $(TYPE_DEP_LIBRARY_PATH)
+	$(LD) $(LDFLAGS) -o $@ $(OBJS) -Wl,--whole-archive $(TYPE_DEP_LIBRARY_PATH) -Wl,--no-whole-archive
+	strip --remove-section=.comment --remove-section=.note --enable-deterministic-archives $@
 
 %.o: %.c $(HEADERS)
 	$(CC) $(CFLAGS) -c $<

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/cf-python.git



More information about the Python-modules-commits mailing list