void-packages/srcpkgs/php8.2/patches/php-cross-config.patch

23 lines
791 B
Diff
Raw Normal View History

2022-12-09 15:09:48 +01:00
diff --git a/configure b/configure
2023-03-30 14:22:20 +02:00
index e4b82d1..1a8678f 100755
2022-12-09 15:09:48 +01:00
--- a/configure
+++ b/configure
2023-03-30 14:22:20 +02:00
@@ -62424,7 +62424,7 @@ printf %s "checking for pg_config... " >&6; }
2022-12-09 15:09:48 +01:00
fi
done
- if test -n "$PG_CONFIG"; then
+ if test -n "$PG_CONFIG" && test "x$cross_compiling" != "xyes"; then
2023-03-30 14:22:20 +02:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
printf "%s\n" "$PG_CONFIG" >&6; }
2022-12-09 15:09:48 +01:00
PGSQL_INCLUDE=`$PG_CONFIG --includedir`
2023-03-30 14:22:20 +02:00
@@ -63948,7 +63948,7 @@ printf %s "checking for pg_config... " >&6; }
2022-12-09 15:09:48 +01:00
fi
done
- if test -n "$PG_CONFIG"; then
+ if test -n "$PG_CONFIG" && test "x$cross_compiling" != "xyes"; then
2023-03-30 14:22:20 +02:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
printf "%s\n" "$PG_CONFIG" >&6; }
2022-12-09 15:09:48 +01:00
PGSQL_INCLUDE=`$PG_CONFIG --includedir`