You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.0 KiB

Index: src/compile
--- src/compile.orig 2013-12-16 14:22:18.000000000 +0100
+++ src/compile 2013-12-20 18:31:31.963945652 +0100
@@ -7,10 +7,10 @@
. ../compiler
-rm a.out config.h
+rm -f a.out config.h
eval $CC $CFLAGS mkconf/mkconf.c $LDFLAGS
./a.out > config.h
-rm a.out
+rm -f a.out
# We compile twice, once for static link, once for dynamic.
# I don't much like -fPIC for static linking, since on some platforms
@@ -23,19 +23,7 @@
rm *.o gjrand.a combo.c
eval $CC $CFLAGS -DGJRAND_STATIC=' ' -DGJRAND_STATICE=1 -c *.c
-ar rcs gjrand.a *.o
-
-# dynamic link
-rm *.o gjrand.so
-# It's important that aanormaltab.c comes before several others.
-# Bourne shell does this. Be careful if translating this script.
-cat *.c > combo.c
-
-eval $CC $CFLAGS -DGJRAND_STATIC=static -DGJRAND_STATICE=0 -fPIC -c combo.c
-
-$CC -shared $CFLAGS -fPIC combo.o -o gjrand.so
-
-rm *.o combo.c
+ar rc gjrand.a *.o
# This is a more obvious way to do dynamic link.
# If something is going wrong with the compile, and the messages are too