Skip to content

Commit

Permalink
Revert "Build clang and other llvm executables as PIE"
Browse files Browse the repository at this point in the history
This reverts commit 470f9f1.

I need more time to figure out how to make this work correctly with
incremental builds, which it currently miserably fails on.
  • Loading branch information
DimitryAndric committed Feb 12, 2024
1 parent 81092e9 commit d9c0e2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions lib/clang/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
.include <bsd.compiler.mk>

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
Expand Down
2 changes: 2 additions & 0 deletions usr.bin/clang/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ WARNS?= 0

.include <bsd.compiler.mk>

MK_PIE:= no # Explicit libXXX.a references

.if ${COMPILER_TYPE} == "clang"
DEBUG_FILES_CFLAGS= -gline-tables-only
.else
Expand Down

0 comments on commit d9c0e2e

Please sign in to comment.