Skip to content

Commit

Permalink
patch c2man Configure
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoVan committed Nov 9, 2024
1 parent 948e6dd commit 16218fb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,17 @@ check_result

cd ${magicdir}/fribidi

# patch c2man Configure
git clone https://github.com/fribidi/c2man.git
cd c2man
git checkout 577ed4095383ef5284225d45709e6b5f0598a064
git apply ../c2man.diff
cd ..

.ci/build-c2man.sh



export PATH=$PATH:${magicdir}/fribidi/c2man/c2man-install

./autogen.sh && \
Expand Down
30 changes: 30 additions & 0 deletions c2man.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git a/Configure b/Configure
index 87e16cd..aaafb9c 100755
--- a/Configure
+++ b/Configure
@@ -2070,6 +2070,7 @@ echo " "
echo "Checking for GNU cc in disguise and/or its version number..." >&4
$cat >gccvers.c <<EOM
#include <stdio.h>
+#include <stdlib.h>
int main() {
#ifdef __GNUC__
#ifdef __VERSION__
@@ -2560,7 +2561,8 @@ and I got the following output:
EOM
$cat > try.c <<'EOF'
#include <stdio.h>
-main() { exit(0); }
+#include <stdlib.h>
+int main() { exit(0); }
EOF
dflt=y
if sh -c "$cc $optimize $ccflags try.c -o try $ldflags" >>try.msg 2>&1; then
@@ -3262,6 +3264,7 @@ echo " "
echo "Checking whether your compiler can handle __attribute__ ..." >&4
$cat >attrib.c <<'EOCP'
#include <stdio.h>
+#include <stdlib.h>
void croak (char* pat,...) __attribute__((format(printf,1,2),noreturn));
EOCP
if $cc $ccflags -c attrib.c >attrib.out 2>&1 ; then

0 comments on commit 16218fb

Please sign in to comment.