mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
dns/void-zones-tools: Fix build with WITH_PIE=YES
Patch CFLAGS from being overridden and remove -fno-pic to facilitate building with WITH_PIE=yes PR: 275039 Reported by: Marek Zarychta
This commit is contained in:
parent
51374276fb
commit
11a7b638a6
2 changed files with 13 additions and 3 deletions
|
@ -2,6 +2,7 @@ PORTNAME= void-zones-tools
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
DISTVERSION= 1.0.2-18
|
DISTVERSION= 1.0.2-18
|
||||||
DISTVERSIONSUFFIX= -g204634a
|
DISTVERSIONSUFFIX= -g204634a
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= dns
|
CATEGORIES= dns
|
||||||
|
|
||||||
MAINTAINER= vidar@karlsen.tech
|
MAINTAINER= vidar@karlsen.tech
|
||||||
|
|
|
@ -1,13 +1,22 @@
|
||||||
--- Makefile.orig 2023-08-28 22:28:23 UTC
|
--- Makefile.orig 2023-08-28 22:28:23 UTC
|
||||||
+++ Makefile
|
+++ Makefile
|
||||||
@@ -26,9 +26,7 @@
|
@@ -26,15 +26,13 @@
|
||||||
CC ?= clang
|
CC ?= clang
|
||||||
DV != $(CC) -dumpversion
|
DV != $(CC) -dumpversion
|
||||||
|
|
||||||
-.if $(MACHINE) == "i386" || $(MACHINE) == "amd64" || $(MACHINE) == "x86_64"
|
-.if $(MACHINE) == "i386" || $(MACHINE) == "amd64" || $(MACHINE) == "x86_64"
|
||||||
-CFLAGS = $(CDEFS) -march=native -mssse3
|
-CFLAGS = $(CDEFS) -march=native -mssse3
|
||||||
-.elif $(MACHINE) == "arm"
|
-.elif $(MACHINE) == "arm"
|
||||||
|
-CFLAGS = $(CDEFS) -fsigned-char
|
||||||
+.if $(MACHINE) == "arm"
|
+.if $(MACHINE) == "arm"
|
||||||
CFLAGS = $(CDEFS) -fsigned-char
|
+CFLAGS += $(CDEFS) -fsigned-char
|
||||||
.else
|
.else
|
||||||
CFLAGS = $(CDEFS)
|
-CFLAGS = $(CDEFS)
|
||||||
|
+CFLAGS += $(CDEFS)
|
||||||
|
.endif
|
||||||
|
|
||||||
|
-CFLAGS += -std=gnu11 -g0 -O3 -fno-pic -fvisibility=hidden -fstrict-aliasing -fno-common -fstack-protector -Wno-parentheses
|
||||||
|
+CFLAGS += -std=gnu11 -g0 -O3 -fvisibility=hidden -fstrict-aliasing -fno-common -fstack-protector -Wno-parentheses
|
||||||
|
|
||||||
|
# Clang only flags come here
|
||||||
|
.if $(DV) == "4.2.1"
|
||||||
|
|
Loading…
Add table
Reference in a new issue