summaryrefslogtreecommitdiff
path: root/community/madman/fake-g++.sh
diff options
context:
space:
mode:
Diffstat (limited to 'community/madman/fake-g++.sh')
-rwxr-xr-xcommunity/madman/fake-g++.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/community/madman/fake-g++.sh b/community/madman/fake-g++.sh
new file mode 100755
index 000000000..17da66d5a
--- /dev/null
+++ b/community/madman/fake-g++.sh
@@ -0,0 +1,7 @@
+#!/bin/sh -x
+
+Q=`echo "$*" | sed 's|- p t h r e a d|-pthread|'`
+
+echo "$Q" | grep 'lmp4ff' && Q="$Q /usr/lib/libmp4ff.a"
+
+exec /bin/g++ $Q