git: 3f5859f965d9 - main - devel/clxclient: Don't override ports framework optimization

Daniel Engberg diizzy at FreeBSD.org
Sat Sep 11 08:38:39 UTC 2021


The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3f5859f965d967ab552d57549746abb2a7520b87

commit 3f5859f965d967ab552d57549746abb2a7520b87
Author:     Daniel Engberg <diizzy at FreeBSD.org>
AuthorDate: 2021-09-11 08:34:23 +0000
Commit:     Daniel Engberg <diizzy at FreeBSD.org>
CommitDate: 2021-09-11 08:37:00 +0000

    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)
---
 devel/clxclient/files/patch-Makefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

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)


More information about the dev-commits-ports-main mailing list