forked from p3ck/restraint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libarchive requires bzip2 compiled with -fPIE
Trying to build latest rawhide rpms for restraint. Discovered Fedora-36 and 37 were not building. Build system showed errors from libarchive builds with undefined references to methods like BZ2_bzDecompressInit, BZ2_bzDecompress, etc. Outside of build system, I found errors requesting the bzip2 library be recompiled with -fPIE which is what this changeset does. Once changes applied, build errors went away and the executable comes up and runs without issues.
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/Makefile b/Makefile | ||
index f8a1772..f798668 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -21,7 +21,7 @@ RANLIB=ranlib | ||
LDFLAGS= | ||
|
||
BIGFILES=-D_FILE_OFFSET_BITS=64 | ||
-CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) | ||
+CFLAGS=-fPIE -Wall -Winline -O2 -g $(BIGFILES) | ||
|
||
# Where you want it installed when you do 'make install' | ||
PREFIX=/usr/local |