SOURCES: lensfun-build.patch (NEW) * fix various build-system idiocies: - d...

sparky sparky at pld-linux.org
Wed Nov 19 19:27:50 CET 2008


Author: sparky                       Date: Wed Nov 19 18:27:50 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
* fix various build-system idiocies:
- don't define broken macros
- don't try to add -mtune=
- fix link order
- don't generate .so.0 symlink

---- Files affected:
SOURCES:
   lensfun-build.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/lensfun-build.patch
diff -u /dev/null SOURCES/lensfun-build.patch:1.1
--- /dev/null	Wed Nov 19 19:27:51 2008
+++ SOURCES/lensfun-build.patch	Wed Nov 19 19:27:45 2008
@@ -0,0 +1,56 @@
+--- lensfun-0.2.3/ac.py~orig	2008-07-14 21:28:32.000000000 +0200
++++ lensfun-0.2.3/ac.py	2008-11-19 18:51:55.000000000 +0100
+@@ -301,7 +301,6 @@
+ 
+     add_config_h ("PLATFORM_" + TARGET [0].upper ())
+     add_config_h ("ARCH_" + TARGET [1].upper ())
+-    add_config_h ("TUNE_" + TARGET [2].upper ())
+ 
+     add_config_mak ("HOST", HOST [0])
+     add_config_mak ("TARGET", TARGET [0])
+--- lensfun-0.2.3/ac.py~orig	2008-11-19 18:56:06.000000000 +0100
++++ lensfun-0.2.3/ac.py	2008-11-19 18:56:54.000000000 +0100
+@@ -142,7 +142,6 @@
+             add_config_h ("CONF_SYMBOL_VISIBILITY")
+ 
+         check_cflags ("-Wno-non-virtual-dtor", "CXXFLAGS", "-Werror")
+-        check_cflags ("-mtune=" + TARGET [2], "CFLAGS")
+         try:
+             self.sse_supported.index (TARGET [2])
+             if check_cflags ("-mfpmath=sse", "CFLAGS"):
+--- lensfun-0.2.3/build/mak/compiler/gcc.mak~orig	2008-05-11 17:50:15.000000000 +0200
++++ lensfun-0.2.3/build/mak/compiler/gcc.mak	2008-11-19 19:03:12.000000000 +0100
+@@ -71,7 +71,7 @@
+ endef
+ 
+ LINK.GCC.AR = $(GCC.AR) $(GCC.ARFLAGS) $@ $^
+-LINK.GCC.EXEC = $(GCC.LD) -o $@ $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2
++LINK.GCC.EXEC = $(GCC.LD) -o $@ $(GCC.LDFLAGS) $(LDFLAGS) $^ $1 $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2
+ define LINK.GCC.SO
+ 	$(GCC.LD) -o $@.$(SHARED.$3) -Wl,"-soname=$(notdir $@).$(basename $(basename $(SHARED.$3)))" $(GCC.LDFLAGS.SHARED) $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2
+ 	ln -fs $(notdir $@.$(SHARED.$3)) $@.$(basename $(basename $(SHARED.$3)))
+--- lensfun-0.2.3/build/mak/compiler/gcc.mak~orig	2008-11-19 19:05:55.000000000 +0100
++++ lensfun-0.2.3/build/mak/compiler/gcc.mak	2008-11-19 19:09:17.000000000 +0100
+@@ -73,9 +73,8 @@
+ LINK.GCC.AR = $(GCC.AR) $(GCC.ARFLAGS) $@ $^
+ LINK.GCC.EXEC = $(GCC.LD) -o $@ $(GCC.LDFLAGS) $(LDFLAGS) $^ $1 $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2
+ define LINK.GCC.SO
+-	$(GCC.LD) -o $@.$(SHARED.$3) -Wl,"-soname=$(notdir $@).$(basename $(basename $(SHARED.$3)))" $(GCC.LDFLAGS.SHARED) $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2
+-	ln -fs $(notdir $@.$(SHARED.$3)) $@.$(basename $(basename $(SHARED.$3)))
+-	ln -fs $(notdir $@.$(basename $(basename $(SHARED.$3)))) $@
++	$(GCC.LD) -o $@.$(SHARED.$3) -Wl,"-soname=$(notdir $@).$(basename $(basename $(SHARED.$3)))" $(GCC.LDFLAGS.SHARED) $(GCC.LDFLAGS) $(LDFLAGS) $^ $1 $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2
++	ln -fs $(notdir $@.$(SHARED.$3)) $@
+ endef
+ 
+ # Linking rules ($1 = target full filename, $2 = dependency list,
+--- lensfun-0.2.3/build/mak/compiler/gcc.mak~orig	2008-11-19 19:09:32.000000000 +0100
++++ lensfun-0.2.3/build/mak/compiler/gcc.mak	2008-11-19 19:11:39.000000000 +0100
+@@ -93,7 +93,7 @@
+ # $3 = full target file name)
+ define MKIRULES.GCC
+ $(if $(findstring $L,$2),\
+-$(foreach _,$3 $(if $(SHARED.$2),$3.$(SHARED.$2) $3.$(basename $(basename $(SHARED.$2)))),
++$(foreach _,$3 $(if $(SHARED.$2),$3.$(SHARED.$2)),
+ 	$(if $V,, at echo INSTALL $_ to $(call .INSTDIR,$1,$2,$(CONF_LIBDIR)) &&)\
+ 	$$(call INSTALL,$_,$(call .INSTDIR,$1,$2,$(CONF_LIBDIR)),$(if $(SHARED.$2),0755,0644))))\
+ $(if $(findstring $E,$2),
================================================================


More information about the pld-cvs-commit mailing list