Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
5137427
commit 11a7b63
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
--- Makefile.orig 2023-08-28 22:28:23 UTC | ||
+++ Makefile | ||
@@ -26,9 +26,7 @@ | ||
@@ -26,15 +26,13 @@ | ||
CC ?= clang | ||
DV != $(CC) -dumpversion | ||
|
||
-.if $(MACHINE) == "i386" || $(MACHINE) == "amd64" || $(MACHINE) == "x86_64" | ||
-CFLAGS = $(CDEFS) -march=native -mssse3 | ||
-.elif $(MACHINE) == "arm" | ||
-CFLAGS = $(CDEFS) -fsigned-char | ||
+.if $(MACHINE) == "arm" | ||
CFLAGS = $(CDEFS) -fsigned-char | ||
+CFLAGS += $(CDEFS) -fsigned-char | ||
.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" |