The Samba-Bugzilla – Attachment 2127 Details for
Bug 4081
Build system: Not building outside /source
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
simple build script
build-samba4 (text/plain), 1.73 KB, created by
Gerald (Jerry) Carter (dead mail address)
on 2006-09-06 08:10:06 UTC
(
hide
)
Description:
simple build script
Filename:
MIME Type:
Creator:
Gerald (Jerry) Carter (dead mail address)
Created:
2006-09-06 08:10:06 UTC
Size:
1.73 KB
patch
obsolete
>#!/bin/sh > >SRCDIR=$1 >if [ "x${SRCDIR}" = "x" ]; then > SRCDIR=. >fi > >TEST_FLAGS="" >if [ "x$2" = "xtest" ]; then > TEST_FLAGS="--enable-socket-wrapper" >fi > > >EXTRA_FLAGS="" >DIR_FLAGS="--prefix=/opt/samba4" >DIR2_FLAGS="--localstatedir=/var/lib/samba --with-piddir=/var/run\ > --with-logfilebase=/var/log/samba --with-privatedir=/etc/samba\ > --with-configdir=/etc/samba --with-lockdir=/var/lib/samba" >CONFIG_OPTS="" > >CONFIGURE_OPTS="--enable-debug ${DIR_FLAGS} ${TEST_FLAGS}" > >## compiler and flags >CFLAGS="" >CPPFLAGS="" >LDFLAGS="" >CC="gcc" > >## required library paths >DIRPATH="" >for dir in $DIRPATH ; do > CPPFLAGS="$CPPFLAGS -I$dir/include" > CFLAGS="$CFLAGS -Wl,-rpath,$dir/lib" > LDFLAGS="$LDFLAGS -L$dir/lib" >done > >CC_VERSION=`${CC} --version | head -1 | awk '{print $3}'` >CC_MAJOR=`echo ${CC_VERSION} | cut -d. -f 1` >CC_MINOR=`echo ${CC_VERSION} | cut -d. -f 2` > >## check for gcc 3.4 or later >MAKE_BASICS="proto" >if [ ${CC_MAJOR} -ge 3 ]; then > if [ ${CC_MAJOR} -gt 3 -o ${CC_MINOR} -ge 4 ]; then > MAKE_BASICS="${MAKE_BASICS} pch" > fi >fi > >## check for parallel builds >NUM_CPUS=`cat /proc/cpuinfo | grep ^processor | wc -l` >MAKE_ARGS="" >if [ ${NUM_CPUS} -gt 1 ]; then > MAKE_ARGS="-j${NUM_CPUS}" >fi > >echo "SRCDIR=${SRCDIR}" >echo "CPPFLAGS=${CPPFLAGS}" >echo "CFLAGS=${CFLAGS}" >echo "LDFLAGS=${LDFLAGS}" >echo "CC=${CC}" >echo "NUM_CPUS=${NUM_CPUS}" >echo "CC_VERSION=${CC_MAJOR}.${CC_MINOR}" >echo "CONFIGURE_OPTS=${CONFIGURE_OPTS}" >export CPPFLAGS CFLAGS LDFLAGS CC > >## configure && build >if [ ! -f ${SRCDIR}/configure ]; then > (cd ${SRCDIR} && ./autogen.sh ) || exit 1 >fi >${SRCDIR}/configure ${CONFIGURE_OPTS} > >if [ $? -ne 0 ]; then > echo "configure failed. Exiting...." > exit 1 >fi > >make showlayout >make ${MAKE_BASICS} >make ${MAKE_ARGS} > >echo "directory ${SRCDIR}" >> .gdbinit > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4081
:
2127
|
3305
|
3306
|
3307
|
3308
|
3309
|
3310
|
3311
|
3579