Mercurial > hg > aboriginal
annotate sources/sections/distcc.build @ 1812:acaa88463c0c draft
Add CROSS_COMPILER_PATH and CC_PREFIX knobs.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 12 Nov 2015 07:55:05 -0600 |
parents | 5c9d74b49fb5 |
children |
rev | line source |
---|---|
1034
27c38c82401d
Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 rsync_cv_HAVE_C99_VSNPRINTF=yes \ |
1812
acaa88463c0c
Add CROSS_COMPILER_PATH and CC_PREFIX knobs.
Rob Landley <rob@landley.net>
parents:
1131
diff
changeset
|
2 LDFLAGS="$STATIC_FLAGS $LDFLAGS" CC="${CC_PREFIX}cc" ./configure \ |
1131
5c9d74b49fb5
Install distcc binaries in the distcc subdirectory, not in /bin.
Rob Landley <rob@landley.net>
parents:
1130
diff
changeset
|
3 --host="${CROSS_TARGET}" --prefix="$STAGE_DIR" --bindir="$STAGE_DIR/distcc" \ |
1034
27c38c82401d
Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 --with-included-popt --disable-Werror && |
27c38c82401d
Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 make -j $CPUS && |
27c38c82401d
Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 make -j $CPUS install && |
27c38c82401d
Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 mkdir -p "$STAGE_DIR/distcc" || dienow |
27c38c82401d
Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 |
1130
c222ae88733a
Add NO_CPLUSPLUS config option, to skip c++ support entirely.
Rob Landley <rob@landley.net>
parents:
1034
diff
changeset
|
9 TEMP="" |
c222ae88733a
Add NO_CPLUSPLUS config option, to skip c++ support entirely.
Rob Landley <rob@landley.net>
parents:
1034
diff
changeset
|
10 [ -z "$NO_CPLUSPLUS" ] && TEMP="g++ c++" |
c222ae88733a
Add NO_CPLUSPLUS config option, to skip c++ support entirely.
Rob Landley <rob@landley.net>
parents:
1034
diff
changeset
|
11 for i in gcc cc $TEMP |
1034
27c38c82401d
Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 do |
1131
5c9d74b49fb5
Install distcc binaries in the distcc subdirectory, not in /bin.
Rob Landley <rob@landley.net>
parents:
1130
diff
changeset
|
13 ln -s distcc "$STAGE_DIR/distcc/$i" || dienow |
1034
27c38c82401d
Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 done |