[Python-modules-commits] [cf-python] 10/14: Link with gcc for standard libs and dep info.

Klaus Zimmermann zklaus-guest at moszumanska.debian.org
Mon Sep 19 15:52:02 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 833443d6c08c527ed8ae51303643dffafaf5201b
Author: Klaus Zimmermann <klaus_zimmermann at gmx.de>
Date:   Mon Sep 19 15:32:24 2016 +0200

    Link with gcc for standard libs and dep info.
    
    Signed-off-by: Klaus Zimmermann <klaus_zimmermann at gmx.de>
---
 cf/um/umread/c-lib/Makefile | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/cf/um/umread/c-lib/Makefile b/cf/um/umread/c-lib/Makefile
index bc6d336..a9a3298 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
@@ -14,6 +14,14 @@ TYPE_DEP_LIBRARY = umfile_typedep.a
 TYPE_DEP_DIR = type-dep
 TYPE_DEP_LIBRARY_PATH = $(TYPE_DEP_DIR)/$(TYPE_DEP_LIBRARY)
 
+STEMS = umfile_test_typedep interpret_header read process_vars \
+        debug_dump date_and_time compare levels axes unwgdos
+
+SGL_OBJS=$(foreach stem, $(STEMS), $(TYPE_DEP_DIR)/$(stem)_sgl.o)
+DBL_OBJS=$(foreach stem, $(STEMS), $(TYPE_DEP_DIR)/$(stem)_dbl.o)
+
+OBJS += $(SGL_OBJS) $(DBL_OBJS)
+
 export CC CFLAGS CPP TYPE_DEP_LIBRARY
 
 .PHONY: clean all type-dep
@@ -27,8 +35,9 @@ clean:
 type-dep:
 	$(MAKE) -C $(TYPE_DEP_DIR)
 
-$(LIBRARY): $(OBJS) type-dep
-	$(LD) $(LDFLAGS) -o $@ $(OBJS) --whole-archive $(TYPE_DEP_LIBRARY_PATH)
+$(LIBRARY): type-dep $(OBJS)
+	$(LD) $(LDFLAGS) -o $@ $(OBJS)
+	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