Package: funtools / 1.4.4+dfsg2-1

link_to_so.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Ole Streicher <debian@liska.ath.cx>
Description: Link the executables agains libfuntools.so and link libfuntools.so
 against the needed libs.
--- sao-funtools-1.4.4.orig/Makefile.in
+++ sao-funtools-1.4.4/Makefile.in
@@ -160,7 +160,7 @@ LIB =		@LIB@
 
 # this is used in the link line
 # LLIB =	$(LIB)
-LLIB =		@LLIB@
+LLIB =		-L. -lfuntools
 
 # libraries containing main as subroutines
 MAINLIB =	lib$(PACKAGE)MainLib.a
@@ -228,7 +228,7 @@ shlib:		sublib $(LIBOBJS)
 		@(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \
 		(cd $(PACKAGE)tmp && ar x ../$(LIB)); \
 		CC='$(CC)' CXX=$(CXX) \
-		./mklib -o $(PACKAGE) $(PACKAGE)tmp/*.o; \
+		./mklib -o $(PACKAGE) -ldl $(WCS_LIBS) -lm -lz $(PACKAGE)tmp/*.o; \
 		rm -rf $(PACKAGE)tmp;)
 
 mainlib:	$(MAINLIBOBJS) funmainlib.o lex.calc.o