File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 78
78
79
79
if [ -n " ${PREFIX:- } " ]; then
80
80
abs_prefix=$( realpath $PREFIX )
81
-
82
- # Use -idirafter so that package-specified -I directories take priority. For
83
- # example, grpcio provides its own BoringSSL headers which must be used rather than
84
- # our OpenSSL.
85
- CFLAGS=" $CFLAGS -idirafter $abs_prefix /include"
81
+ CFLAGS=" $CFLAGS -I$abs_prefix /include"
86
82
LDFLAGS=" $LDFLAGS -L$abs_prefix /lib"
87
83
88
84
export PKG_CONFIG=" pkg-config --define-prefix"
Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ rm -r $prefix/usr
54
54
cd $prefix /lib
55
55
for name in crypto ssl; do
56
56
old_name=$( basename $( realpath lib$name .so) ) # Follow symlinks.
57
+
58
+ # Strip before patching, otherwise the libraries may be corrupted:
59
+ # https://github.com/NixOS/patchelf/issues?q=is%3Aissue+strip+in%3Atitle
60
+ " $STRIP " " $old_name "
61
+
57
62
new_name=" lib${name} _python.so"
58
63
if [ " $name " = " crypto" ]; then
59
64
crypto_old_name=$old_name
Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ make install prefix=$prefix
43
43
cd $prefix /lib
44
44
for name in sqlite3; do
45
45
old_name=$( basename $( realpath lib$name .so) ) # Follow symlinks.
46
+
47
+ # Strip before patching, otherwise the libraries may be corrupted:
48
+ # https://github.com/NixOS/patchelf/issues?q=is%3Aissue+strip+in%3Atitle
49
+ " $STRIP " " $old_name "
50
+
46
51
new_name=" lib${name} _python.so"
47
52
mv " $old_name " " $new_name "
48
53
ln -s " $new_name " " $old_name "
You can’t perform that action at this time.
0 commit comments