From d9c0e2e16660ecbe33e780821e95508a1d7870b1 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 12 Feb 2024 10:27:00 +0100 Subject: [PATCH] Revert "Build clang and other llvm executables as PIE" This reverts commit 470f9f13de10e47e6d45721c15af6b4abe7aad55. I need more time to figure out how to make this work correctly with incremental builds, which it currently miserably fails on. --- lib/clang/Makefile.inc | 6 +----- usr.bin/clang/Makefile.inc | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/clang/Makefile.inc b/lib/clang/Makefile.inc index 5a8ead5292c..2dfc966726b 100644 --- a/lib/clang/Makefile.inc +++ b/lib/clang/Makefile.inc @@ -2,11 +2,7 @@ .include PACKAGE= clang - -# Build only PIE static libraries; bsd.lib.mk does support this directly. -MK_PIE:= no -CFLAGS+= ${PIEFLAG} ${SHARED_CFLAGS} -CXXFLAGS+= ${PIEFLAG} ${SHARED_CXXFLAGS} +MK_PIE:= no # Explicit libXXX.a references .if ${COMPILER_TYPE} == "clang" DEBUG_FILES_CFLAGS= -gline-tables-only diff --git a/usr.bin/clang/Makefile.inc b/usr.bin/clang/Makefile.inc index 8f812e24fcd..831cd56a8c2 100644 --- a/usr.bin/clang/Makefile.inc +++ b/usr.bin/clang/Makefile.inc @@ -3,6 +3,8 @@ WARNS?= 0 .include +MK_PIE:= no # Explicit libXXX.a references + .if ${COMPILER_TYPE} == "clang" DEBUG_FILES_CFLAGS= -gline-tables-only .else