blob: dbb6393730ee856d4a78bdd1611b811c4a38c3d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
$FreeBSD$
--- aimk.orig
+++ aimk
@@ -397,7 +397,7 @@
if ( $?SGE_INPUT_CFLAGS ) then
set INP_CFLAGS = "$SGE_INPUT_CFLAGS"
else
- set INP_CFLAGS = ""
+ set INP_CFLAGS = "%%CFLAGS%%"
endif
# Default build targets for which we have seperate make files
@@ -1177,27 +1177,27 @@
set MAKE = gmake
set OFLAG = "-O"
set ARFLAGS = rcv
- set CC = gcc
- set CXX = g++
+ set CC = %%CC%%
+ set CXX = %%CXX%%
set DLLIB = ""
set DEPEND_FLAGS = "$CFLAGS $XMTINCD"
set PTHRDSFLAGS = "-D_REENTRANT -D__USE_REENTRANT"
- set CFLAGS = "$OFLAG -Wall -DFREEBSD -D$BUILDARCH -DGETHOSTBYNAME_M -DGETHOSTBYADDR_M $DEBUG_FLAG $CFLAGS -I/usr/X11R6/include"
+ set CFLAGS = "$OFLAG -Wall -DFREEBSD -D$BUILDARCH -DGETHOSTBYNAME_M -DGETHOSTBYADDR_M $DEBUG_FLAG $CFLAGS -I%%X11BASE%%/include"
set NOERR_CFLAG = "-Wno-error"
- set LFLAGS = "$DEBUG_FLAG $LFLAGS"
+ set LFLAGS = "-export-dynamic $DEBUG_FLAG $LFLAGS"
set LIBS = "$LIBS -lkvm"
set SHAREDLD = $CC
set SHARED_CFLAGS = "-fPIC"
- set SHARED_LFLAGS = "$SHARED_LFLAGS -L. -shared"
+ set SHARED_LFLAGS = "-export-dynamic $SHARED_LFLAGS -L. -shared"
set XMTDEF = ""
- set XINCD = "$XMTINCD $XINCD -I/usr/X11/include"
+ set XINCD = "$XMTINCD $XINCD -I%%X11BASE%%/include"
set XCFLAGS = "-Wno-strict-prototypes -Wno-error $XMTDEF $XINCD"
- set XLIBD = "-L/usr/X11R6/lib"
+ set XLIBD = "-L%%X11BASE%%/lib"
set XLFLAGS = "$XLIBD"
set XLIBS = " -Xlinker -lXm -Xlinker -Bdynamic -lXpm -lXt -lXext -lX11 -lSM -lICE -lXp"
set RM = "rm -f"
- set JAVA_ARCH = ""
+ set JAVA_ARCH = "freebsd"
breaksw
case NETBSD_*:
|