spielwiese
Last change
on this file since 5fdf7a was
5fdf7a,
checked in by Max Horn <max@…>, 11 years ago
|
Replace --no-{rtti,exceptions} by -fno-{rtti,exceptions}
This improves compatibility with clang. Moreover, to the best
of my knowledge, the --no-* variants are undocumented to start with.
At least the GCC manuals for all versions from 2.95.3 till 4.7.2
only list the -fno-* variants, as far as I could tell.
|
-
Property mode set to
100755
|
File size:
1.1 KB
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | |
---|
4 | ############################################################################################################# |
---|
5 | # !!!!!!!!!!!!!!!!! Please put a copy of the installed '$PREFIX/bin/libpolys-config' here !!!!!!!!!!!!!!!!!!! |
---|
6 | ############################################################################################################# |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | # NAME="tt" |
---|
11 | NAME="test" |
---|
12 | |
---|
13 | P="." |
---|
14 | # /mnt/DATA/GITHUB/w/GAP/libsing/spielwiese/TARGET/bin" |
---|
15 | |
---|
16 | LIBPOLYSCFLAGS="`sh $P/libsingular-config --cflagsg` -g -Wextra -Winline -Wall -Wno-long-long -O0 -fno-exceptions" |
---|
17 | LIBPOLYSLIBS=`sh $P/libsingular-config --libsg` |
---|
18 | LIBPOLYSPREFIX="`sh $P/libsingular-config --prefix`" |
---|
19 | |
---|
20 | echo "Using libpolys from: '$LIBPOLYSPREFIX'" |
---|
21 | echo "Using CFLAGS: '$LIBPOLYSCFLAGS'" |
---|
22 | echo "Using LIBS: '$LIBPOLYSLIBS'" |
---|
23 | |
---|
24 | CMD="g++ $LIBPOLYSCFLAGS -c $NAME.cc " |
---|
25 | echo "executing '$CMD':" |
---|
26 | $CMD |
---|
27 | # -rdynamic |
---|
28 | CMD="g++ -static -g -Wextra -Winline -Wall -Wno-long-long -O0 -fno-exceptions $NAME.o -o $NAME $LIBPOLYSLIBS" |
---|
29 | echo "executing '$CMD':" |
---|
30 | $CMD |
---|
31 | |
---|
32 | SINGULARPATH="$LIBPOLYSPREFIX/share/gftables:$LIBPOLYSPREFIX/libexec/singular/MOD" SINGULAR_ROOT_DIR="$LIBPOLYSPREFIX" ./$NAME |
---|
Note: See
TracBrowser
for help on using the repository browser.