https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c22
--- Comment #22 from Stanislav Brabec 2011-07-20 20:32:49 CEST ---
Following "compiler" seems to work:
#!/bin/bash
if test "$1" = "-c" ; then
set -x
g++ "$@"
else
ARGS=( "$@" )
LINK1ARGS=( )
LINK2ARGS=( )
for ARG in "${ARGS[@]}" ; do
if test "$ARG" = "-o" ; then
break
fi
LINKARG="${ARG##-l*}"
if test -n "$LINKARG" ; then
LINK1ARGS[${#LINK1ARGS[@]}]="$LINKARG"
fi
LINKARG="${ARG#*.o}"
LINKARG="${LINKARG#*.a}"
if test -n "$LINKARG" ; then
LINK2ARGS[${#LINK2ARGS[@]}]="$LINKARG"
fi
done
OUT=${ARGS[${#ARGS[@]}-1]}
OUTI="${ARGS[${#ARGS[@]}-1]}-intermediate.o"
set -x
g++ "${LINK1ARGS[@]}" -o "$OUTI" -r -nostdlib -lsupc++
gcc -o "$OUT" "${LINK2ARGS[@]}" "$OUTI"
fi
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.