summaryrefslogtreecommitdiff
path: root/sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch')
-rw-r--r--sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch b/sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch
new file mode 100644
index 000000000000..60f2acf0477c
--- /dev/null
+++ b/sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch
@@ -0,0 +1,26 @@
+--- src/Makefile.old 2015-07-03 18:06:15.000000000 +0200
++++ src/Makefile 2015-07-03 18:08:50.000000000 +0200
+@@ -69,13 +69,7 @@
+ # -Ofast Optimize till it hurts : "-O3" + enable opts not valid for all standard-compliants
+ # -Os Optimize for size
+ # -Og Optimize debugging experience but don't break debugging
+-ifeq ($(GSPICEUI_DBG),0)
+- # Options for release (not using -Wall since it's GCC specific)
+- CXXFLAGS := -O1 -pipe $(shell $(WXCFG) --cxxflags)
+-else
+- # Options for development
+- CXXFLAGS := -g -Og -Wall -Wextra -pipe $(shell $(WXCFG) --cxxflags)
+-endif
++ CXXFLAGS += $(shell $(WXCFG) --cxxflags)
+
+ # The following suppresses spurious warnings from gcc with wxWidgets v2.8.12
+ ifeq ($(GSPICEUI_WXLIB),2.8)
+@@ -134,7 +128,7 @@
+ # -o specify the output file name
+
+ $(BINDIR)/$(PROG) : $(OBJS)
+- $(CXX) -pipe -o $(BINDIR)/$(PROG) obj/*.o $(LIBS)
++ $(CXX) -pipe -o $(BINDIR)/$(PROG) obj/*.o $(LDFLAGS) $(LIBS)
+ ifeq ($(ROOT)/GSpiceUI.app,$(wildcard $(ROOT)/GSpiceUI.app))
+ cp $(BINDIR)/$(PROG) $(ROOT)/GSpiceUI.app/Contents/MacOS/gspiceui
+ endif