aboutsummaryrefslogtreecommitdiff
path: root/ports/liburing/fix-configure.patch
blob: 92ebf2826f12fd73c132af16c39a0471371ba952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/configure b/configure
index 3b96cde..56d5cb0 100755
--- a/configure
+++ b/configure
@@ -18,16 +18,18 @@ for opt do
   ;;
   --mandir=*) mandir="$optarg"
   ;;
-  --datadir=*) datadir="$optarg"
+  --datarootdir=*) datadir="$optarg"
   ;;
   --cc=*) cc="$optarg"
   ;;
   --cxx=*) cxx="$optarg"
   ;;
+  --enable-shared) ENABLE_SHARED=1
+  ;;
+  --enable-static) ENABLE_SHARED=0
+  ;;
   *)
-    echo "ERROR: unknown option $opt"
-    echo "Try '$0 --help' for more information"
-    exit 1
+    echo "WARNING: unknown option $opt"
   ;;
   esac
 done
@@ -119,6 +121,7 @@ echo "# Automatically generated by configure - do not modify" > $config_host_mak
 printf "# Configured with:" >> $config_host_mak
 printf " '%s'" "$0" "$@" >> $config_host_mak
 echo >> $config_host_mak
+echo "ENABLE_SHARED=${ENABLE_SHARED}" >> $config_host_mak
 
 do_cxx() {
     # Run the compiler, capturing its output to the log.