commit 381c9ba
hovercats
·
2024-04-15 14:17:14 +0000 UTC
parent 96f2161
repo/zlib: remove patch. as its not needed on 1.3.1
4 files changed,
+0,
-78
+0,
-2
1@@ -1,7 +1,5 @@
2 #!/bin/sh -e
3
4-patch -p1 < configure-Pass-LDFLAGS-to-link-tests.patch
5-
6 export CFLAGS="$CFLAGS -fPIC"
7
8 ./configure \
+0,
-1
1@@ -1,2 +1 @@
2 207c3b0862cb4e3686f8405f76a98c38dbad9c94bcf4be4b9efca0716aba51ecbb
3-d53a4aa6d75429e307204cd56e1f12b930d19af59a4e70363cf2f57551a8097845
1@@ -1,74 +0,0 @@
2-From 37c9730ba474d274f4cc6a974943eef95087b9f6 Mon Sep 17 00:00:00 2001
3-From: Khem Raj <raj.khem@gmail.com>
4-Date: Tue, 8 Mar 2022 22:38:47 -0800
5-Subject: [PATCH] configure: Pass LDFLAGS to link tests
6-
7-LDFLAGS can contain critical flags without which linking wont succeed
8-therefore ensure that all configure tests involving link time checks are
9-using LDFLAGS on compiler commandline along with CFLAGS to ensure the
10-tests perform correctly. Without this some tests may fail resulting in
11-wrong confgure result, ending in miscompiling the package
12-
13-Signed-off-by: Khem Raj <raj.khem@gmail.com>
14----
15- configure | 12 ++++++------
16- 1 file changed, 6 insertions(+), 6 deletions(-)
17-
18-diff --git a/configure b/configure
19-index e974d1fd7..69dfa3f69 100755
20---- a/configure
21-+++ b/configure
22-@@ -410,7 +410,7 @@ if test $shared -eq 1; then
23- echo Checking for shared library support... | tee -a configure.log
24- # we must test in two steps (cc then ld), required at least on SunOS 4.x
25- if try $CC -w -c $SFLAGS $test.c &&
26-- try $LDSHARED $SFLAGS -o $test$shared_ext $test.o; then
27-+ try $LDSHARED $SFLAGS $LDFLAGS -o $test$shared_ext $test.o; then
28- echo Building shared library $SHAREDLIBV with $CC. | tee -a configure.log
29- elif test -z "$old_cc" -a -z "$old_cflags"; then
30- echo No shared library support. | tee -a configure.log
31-@@ -492,7 +492,7 @@ int main(void) {
32- }
33- EOF
34- fi
35-- if try $CC $CFLAGS -o $test $test.c; then
36-+ if try $CC $CFLAGS $LDFLAGS -o $test $test.c; then
37- sizet=`./$test`
38- echo "Checking for a pointer-size integer type..." $sizet"." | tee -a configure.log
39- else
40-@@ -530,7 +530,7 @@ int main(void) {
41- return 0;
42- }
43- EOF
44-- if try $CC $CFLAGS -o $test $test.c; then
45-+ if try $CC $CFLAGS $LDFLAGS -o $test $test.c; then
46- echo "Checking for fseeko... Yes." | tee -a configure.log
47- else
48- CFLAGS="${CFLAGS} -DNO_FSEEKO"
49-@@ -547,7 +547,7 @@ cat > $test.c <<EOF
50- #include <errno.h>
51- int main() { return strlen(strerror(errno)); }
52- EOF
53--if try $CC $CFLAGS -o $test $test.c; then
54-+if try $CC $CFLAGS $LDFLAGS -o $test $test.c; then
55- echo "Checking for strerror... Yes." | tee -a configure.log
56- else
57- CFLAGS="${CFLAGS} -DNO_STRERROR"
58-@@ -654,7 +654,7 @@ int main()
59- return (mytest("Hello%d\n", 1));
60- }
61- EOF
62-- if try $CC $CFLAGS -o $test $test.c; then
63-+ if try $CC $CFLAGS $LDFLAGS -o $test $test.c; then
64- echo "Checking for vsnprintf() in stdio.h... Yes." | tee -a configure.log
65-
66- echo >> configure.log
67-@@ -744,7 +744,7 @@ int main()
68- }
69- EOF
70-
71-- if try $CC $CFLAGS -o $test $test.c; then
72-+ if try $CC $CFLAGS $LDFLAGS -o $test $test.c; then
73- echo "Checking for snprintf() in stdio.h... Yes." | tee -a configure.log
74-
75- echo >> configure.log
+0,
-1
1@@ -1,2 +1 @@
2 https://zlib.net/fossils/zlib-1.3.1.tar.gz
3-patches/configure-Pass-LDFLAGS-to-link-tests.patch