aboutsummaryrefslogtreecommitdiff
path: root/openssl/tools/c89.sh
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/tools/c89.sh')
-rw-r--r--openssl/tools/c89.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/openssl/tools/c89.sh b/openssl/tools/c89.sh
new file mode 100644
index 000000000..b25c9fda2
--- /dev/null
+++ b/openssl/tools/c89.sh
@@ -0,0 +1,15 @@
+#!/bin/sh -k
+#
+# Re-order arguments so that -L comes first
+#
+opts=""
+lopts=""
+
+for arg in $* ; do
+ case $arg in
+ -L*) lopts="$lopts $arg" ;;
+ *) opts="$opts $arg" ;;
+ esac
+done
+
+c89 $lopts $opts