blob: c5dc9586d7ba8b47f47312b3757961ca78fe26ed (
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
|
$FreeBSD$
--- dist/pvm/src/aimk.orig
+++ dist/pvm/src/aimk
@@ -73,6 +73,8 @@
setenv ARCH `$SGE_ROOT/util/arch`
+set ARCH = `$SGE_ROOT/util/arch`
+
# common compiler and linker settings
#
unsetenv LD_LIBRARY_PATH
@@ -80,9 +82,9 @@
set MAKE = make
set MAKEFILE = ../Makefile
set SDIR = ".."
-set CFLAGS = "-I../ -I$PVM_ROOT/include"
+set CFLAGS = "-I../ -I$PVM_ROOT/include -I%%LOCALBASE%%/include"
set QSYST_PVM_DIR = "$SGE_ROOT/pvm/lib/$ARCH"
-set LFLAGS = "-L$PVM_ROOT/lib/$PVM_ARCH -L$QSYST_PVM_DIR -L."
+set LFLAGS = "-L$PVM_ROOT/lib/$PVM_ARCH -L$QSYST_PVM_DIR -L%%LOCALBASE%%/lib -L."
set LIBS = ""
set PVM_ROOT = "$PVM_ROOT"
set PVM_ARCH = "$PVM_ARCH"
@@ -171,6 +173,16 @@
case lx24-x86:
set CC = gcc
set CFLAGS = "-O -Wall -Werror -Wstrict-prototypes -DLINUX $DEBUG_FLAG $CFLAGS"
+ set LFLAGS = "$DEBUG_FLAG $LFLAGS"
+ set LIBS = "$LIBS"
+ set START_FILE = "/usr/lib/crti.o /usr/lib/crtbegin.o"
+ set CTOR = "/usr/lib/crti.o /usr/lib/crtbegin.o"
+ set DTOR = "/usr/lib/crtend.o /usr/lib/crtn.o"
+ breaksw
+
+case fbsd-*:
+ set CC = gcc
+ set CFLAGS = "%%CFLAGS%% -Wall -Werror -Wstrict-prototypes $DEBUG_FLAG $CFLAGS"
set LFLAGS = "$DEBUG_FLAG $LFLAGS"
set LIBS = "$LIBS"
set START_FILE = "/usr/lib/crti.o /usr/lib/crtbegin.o"
|