summaryrefslogtreecommitdiff
path: root/packages/libpcap/libpcap-0.7.2/ldflags.patch
blob: 8802a7e07333848b78b664ec27e4a91bf3ba3b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- libpcap-0.7.2/Makefile.in~ldflags
+++ libpcap-0.7.2/Makefile.in
@@ -59,6 +59,10 @@
 CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
 CFLAGS_SHARED = -shared -Wl,-soname,$(SOLIBRARY).$(MAJ)
 
+# Standard LDFLAGS
+LDFLAGS = @LDFLAGS@
+LIBS = -lc
+
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
@@ -118,7 +122,7 @@
 $(SHAREDLIB): $(OBJ_PIC)
 	-@rm -f $@
 	-@rm -f $(SOLIBRARY) $(SOLIBRARY).$(MAJ)
-	$(CC) $(CFLAGS_SHARED) -o $(SHAREDLIB) $(OBJ_PIC) -lc
+	$(CC) $(CFLAGS_SHARED) -o $(SHAREDLIB) $(OBJ_PIC) $(LIBS) $(LDFLAGS)
 	ln -s $(SHAREDLIB) $(SOLIBRARY).$(MAJ)
 	ln -s $(SOLIBRARY).$(MAJ) $(SOLIBRARY)