openbsd-ports/graphics/lensfun/patches/patch-build_tibs_compiler_gcc_mak

31 lines
1.4 KiB
Plaintext

$OpenBSD: patch-build_tibs_compiler_gcc_mak,v 1.1 2010/09/16 10:05:20 sthen Exp $
--- build/tibs/compiler/gcc.mak.orig Wed Mar 24 22:40:12 2010
+++ build/tibs/compiler/gcc.mak Wed Apr 7 03:58:13 2010
@@ -3,7 +3,7 @@
.SUFFIXES: .c .cpp .o .lo .a .pc .pc.in
GCC.CC ?= gcc -c
-GCC.CFLAGS = -pipe -Wall \
+GCC.CFLAGS = -Wall \
$(GCC.CFLAGS.$(MODE)) $(GCC.CFLAGS.DEF) $(GCC.CFLAGS.INC) $(CFLAGS)
GCC.CFLAGS.DEF = $(CFLAGS.DEF)
GCC.CFLAGS.INC = $(if $(DIR.INCLUDE.C),-I$(subst :, -I,$(DIR.INCLUDE.C)))
@@ -11,7 +11,7 @@ ifneq ($(TARGET),windows)
GCC.CFLAGS.SHARED ?= -fPIC
endif
-GCC.CFLAGS.release = -s -O3 -fomit-frame-pointer -funroll-loops
+GCC.CFLAGS.release =
GCC.CFLAGS.debug = -D__DEBUG__ -g
ifeq ($(ARCH),arm)
@@ -77,7 +77,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
define LINK.GCC.SO.VER
- $(GCC.LD) -o $@.$(SHARED.$3) $(call GCC.LDFLAGS.SHARED,$(notdir $@).$(basename $(basename $(SHARED.$3))),$(dir $@)) $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2
+ $(GCC.LD) -o $@.$(SHARED.$3) $(call GCC.LDFLAGS.SHARED,$(notdir $@).$(SHARED.$3),$(dir $@)) $(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)))) $@
endef