blob: 8e211c7e5414a34b8ad2763be29822c84fc3ee2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-build-scripts_strip__fPIC.sh,v 1.1 2022/03/28 14:34:13 tnn Exp $
strip -pie for nasm
--- build-scripts/strip_fPIC.sh.orig 2012-01-19 06:30:05.000000000 +0000
+++ build-scripts/strip_fPIC.sh
@@ -8,6 +8,12 @@ while [ $# -gt 0 ]; do
-fPIC)
# Ignore -fPIC option
;;
+ -pie)
+ # Ignore -pie option for nasm
+ if echo "${command}" | grep -v "^ [^ ]*nasm " > /dev/null; then
+ command="$command $1"
+ fi
+ ;;
-fno-common)
# Ignore -fPIC and -DPIC options
;;
|