File: 01_makefile.diff

package info (click to toggle)
liborigin 20080225-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 388 kB
  • ctags: 787
  • sloc: cpp: 5,242; makefile: 47; sh: 23
file content (21 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/Makefile.LINUX
+++ b/Makefile.LINUX
@@ -7,8 +7,8 @@
 OPJ2DAT = opj2dat
 CC	= g++
 CFLAGS	= -pipe -Wall -W -O2 -fPIC
-LDFLAGS	= -shared -Wl,-soname,$(TARGET1)
-LIBEXT  = `./lib-arch.sh`
+LDFLAGS	= -shared -Wl,-soname,$(TARGET1) -Wl,--no-undefined -Wl,--as-needed
+LIBEXT  = lib
 all : $(TARGET0) $(OPJ2DAT)
 
 $(TARGET0) : $(OPJ).cpp $(OPJ).h
@@ -38,7 +38,5 @@
 	mkdir -p $(DESTDIR)/usr/include/$(TARGET)
 	chmod 644 $(OPJ).h tree.hh
 	cp $(OPJ).h tree.hh $(DESTDIR)/usr/include/$(TARGET)
-	ldconfig
 uninstall:
 	rm -f $(DESTDIR)/usr/$(LIBEXT)/$(TARGET0)* $(DESTDIR)/usr/bin/$(OPJ2DAT) $(DESTDIR)/usr/include/$(TARGET)/$(OPJ).h
-	ldconfig