aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2021-09-11 08:34:23 +0000
committerDaniel Engberg <diizzy@FreeBSD.org>2021-09-11 08:37:00 +0000
commit3f5859f965d967ab552d57549746abb2a7520b87 (patch)
treeee6fd33af7eb119f9a1978e1f8ac85a872ede9cd
parentee6d553d7b6acc679d30b86c717ab42c0efd3459 (diff)
downloadports-3f5859f965d967ab552d57549746abb2a7520b87.tar.gz
ports-3f5859f965d967ab552d57549746abb2a7520b87.zip
devel/clxclient: Don't override ports framework optimization
Don't set -O2 or -march=native as this will clash with optimization handled by ports framework and -march=native isn't valid on several non x86 platforms causing build failures. PR: 258348 Reported by: pkg-fallout Approved by: yuri (maintainer), arrowd (mentor)
-rw-r--r--devel/clxclient/files/patch-Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/clxclient/files/patch-Makefile b/devel/clxclient/files/patch-Makefile
index bea28eb87bca..b9222989d72f 100644
--- a/devel/clxclient/files/patch-Makefile
+++ b/devel/clxclient/files/patch-Makefile
@@ -1,6 +1,16 @@
--- Makefile.orig 2018-08-24 18:50:31 UTC
+++ Makefile
-@@ -55,7 +55,8 @@ install: $(CLXCLIENT_MIN)
+@@ -32,8 +32,7 @@ VERSION = $(MAJVERS).$(MINVERS)
+
+ CPPFLAGS += $(shell pkgconf --cflags freetype2)
+ CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS $(PCONFCFL)
+-CXXFLAGS += -Wall -O2 -fPIC
+-CXXFLAGS += -march=native
++CXXFLAGS += -Wall -fPIC
+ LDLIBS +=
+
+
+@@ -55,7 +54,8 @@ install: $(CLXCLIENT_MIN)
install -d $(DESTDIR)$(LIBDIR)
install -m 644 $(CLXCLIENT_H) $(DESTDIR)$(INCDIR)
install -m 755 $(CLXCLIENT_MIN) $(DESTDIR)$(LIBDIR)