/[gentoo-x86]/net-libs/libnatpmp/files/remove-static-lib.patch
Gentoo

Contents of /net-libs/libnatpmp/files/remove-static-lib.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 9 03:48:22 2012 UTC (2 years, 9 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -33 lines
Clean up patches a bit to respect LDFLAGS and not over use -fPIC.

(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)

1 --- libnatpmp-20110715/Makefile
2 +++ libnatpmp-20110715/Makefile
3 @@ -33,7 +32,7 @@
4
5 HEADERS = natpmp.h
6
7 -EXECUTABLES = testgetgateway natpmpc-shared natpmpc-static
8 +EXECUTABLES = testgetgateway natpmpc-shared
9
10 INSTALLPREFIX ?= $(PREFIX)/usr
11 INSTALLDIRINC = $(INSTALLPREFIX)/include
12 @@ -45,9 +44,9 @@
13
14 .PHONY: all clean depend install cleaninstall installpythonmodule
15
16 -all: $(STATICLIB) $(SHAREDLIB) $(EXECUTABLES)
17 +all: $(SHAREDLIB) $(EXECUTABLES)
18
19 -pythonmodule: $(STATICLIB) libnatpmpmodule.c setup.py
20 +pythonmodule: libnatpmpmodule.c setup.py
21 python setup.py build
22 touch $@
23
24 @@ -55,11 +54,10 @@
25 depend:
26 makedepend -f$(MAKEFILE_LIST) -Y $(OBJS:.o=.c) 2>/dev/null
27
28 -install: $(HEADERS) $(STATICLIB) $(SHAREDLIB) natpmpc-shared
29 +install: $(HEADERS) $(SHAREDLIB) natpmpc-shared
30 $(INSTALL) -d $(INSTALLDIRINC)
31 $(INSTALL) -m 644 $(HEADERS) $(INSTALLDIRINC)
32 $(INSTALL) -d $(INSTALLDIRLIB)
33 - $(INSTALL) -m 644 $(STATICLIB) $(INSTALLDIRLIB)
34 $(INSTALL) -m 644 $(SHAREDLIB) $(INSTALLDIRLIB)/$(SONAME)
35 $(INSTALL) -d $(INSTALLDIRBIN)
36 $(INSTALL) -m 755 natpmpc-shared $(INSTALLDIRBIN)/natpmpc
37 @@ -76,7 +74,6 @@
38 $(RM) $(addprefix $(INSTALLDIRINC), $(HEADERS))
39 $(RM) $(INSTALLDIRLIB)/$(SONAME)
40 $(RM) $(INSTALLDIRLIB)/$(SHAREDLIB)
41 - $(RM) $(INSTALLDIRLIB)/$(STATICLIB)
42
43 testgetgateway: testgetgateway.o getgateway.o
44

  ViewVC Help
Powered by ViewVC 1.1.20