summaryrefslogtreecommitdiff
blob: a4020a012b9823682e04b52c2ef499c4670acb74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- i2p-0.8.7/core/c/jcpuid/build.sh.orig	2011-07-29 18:38:44.554000219 +0200
+++ i2p-0.8.7/core/c/jcpuid/build.sh	2011-07-29 18:38:13.789000172 +0200
@@ -24,8 +24,8 @@
 mkdir lib/freenet/support
 mkdir lib/freenet/support/CPUInformation
 
-CC="gcc"
+test -z "$CC" && CC="gcc"
 
 case `uname -sr` in
 MINGW*)
 	JAVA_HOME="/c/software/j2sdk1.4.2_05"
@@ -50,8 +52,8 @@
 
 echo "Compiling C code..."
 rm -f $LIBFILE
-$CC $COMPILEFLAGS $LINKFLAGS $INCLUDES src/*.c -o $LIBFILE
-strip $LIBFILE
+echo $CC $COMPILEFLAGS $CPPFLAGS $CFLAGS $LINKFLAGS $LDFLAGS $INCLUDES src/*.c -o $LIBFILE
+$CC $COMPILEFLAGS $CPPFLAGS $CFLAGS $LINKFLAGS $LDFLAGS $INCLUDES src/*.c -o $LIBFILE
 echo Built $LIBFILE
 
 #g++ -shared -static -static-libgcc -Iinclude -I$JAVA_HOME/include \