Jean-Philippe Pialasse
05ea95fdea
- fix cross compiling issues [SME: 12512] - tidy spec from deprecated rhel version
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
diff -Nur daemontools-encore-1.10.old/conf-cc daemontools-encore-1.10/conf-cc
|
|
--- daemontools-encore-1.10.old/conf-cc 2014-04-01 18:58:19.000000000 -0400
|
|
+++ daemontools-encore-1.10/conf-cc 2025-01-20 21:26:36.776879300 -0500
|
|
@@ -1,3 +1,3 @@
|
|
-gcc -O2 -Wall -Wshadow -Wcast-align -Wwrite-strings
|
|
+${CC} -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings
|
|
|
|
This will be used to compile .c files.
|
|
diff -Nur daemontools-encore-1.10.old/conf-ld daemontools-encore-1.10/conf-ld
|
|
--- daemontools-encore-1.10.old/conf-ld 2014-04-01 18:58:19.000000000 -0400
|
|
+++ daemontools-encore-1.10/conf-ld 2025-01-20 21:35:54.814297101 -0500
|
|
@@ -1,3 +1,3 @@
|
|
-gcc -s
|
|
+${CC} ${LDFLAGS}
|
|
|
|
This will be used to link .o files into an executable.
|
|
diff -Nur daemontools-encore-1.10.old/Makefile daemontools-encore-1.10/Makefile
|
|
--- daemontools-encore-1.10.old/Makefile 2014-04-01 18:58:19.000000000 -0400
|
|
+++ daemontools-encore-1.10/Makefile 2025-01-20 12:55:43.071975214 -0500
|
|
@@ -210,7 +210,7 @@
|
|
|
|
hasshsgr.h: \
|
|
chkshsgr choose compile hasshsgr.h1 hasshsgr.h2 load tryshsgr.c warn-shsgr
|
|
- ./chkshsgr || ( cat warn-shsgr; exit 1 )
|
|
+ echo "Warning: We can not run test on cross target. - ignoring ./chkshsgr || ( cat warn-shsgr; exit 1 )"
|
|
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
|
|
|
|
haswaitp.h: \
|