Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Aug 2003 06:10:20 -0700 (PDT)
From:      Simon Barner <barner@in.tum.de>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/55708: [patch] Make net/wais respect CC and CFLAGS
Message-ID:  <200308301310.h7UDAKcQ016825@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/55708; it has been noted by GNATS.

From: Simon Barner <barner@in.tum.de>
To: foxfair@FreeBSD.org
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/55708: [patch] Make net/wais respect CC and CFLAGS
Date: Sat, 30 Aug 2003 15:06:26 +0200

 >   I took another approach to fix the problem. How about this one?
 
 [ patch skipped ]
 
 I am afraid I cannot see how this patch will solve the problem that the
 wais port always uses gcc as a compiler and that it does not make use of
 custimized CFLAGS.
 
 With your patch the build looks like this (the long lines wrapped)
 
 make build CC=gcc33 CXX=g++33
 ===>  Extracting for freeWAIS-0.5
 >> Checksum OK for freeWAIS-0.5.tar.gz.
 ===>  Patching for freeWAIS-0.5
 ===>  Applying FreeBSD patches for freeWAIS-0.5
 ===>  Configuring for freeWAIS-0.5
 ===>  Building for freeWAIS-0.5_1
 make -f Makefile.freebsd TOP=/usr/ports/net/wais/work/freeWAIS-0.5
 gcc -o config config.c
 ./config >config.h
 mv ./config.h ./include/config.h
 cd lib; make CC=gcc CFLAGS="-I/usr/ports/net/wais/work/freeWAIS-0.5/include
 -D__bsdi__ -DBSD43 -DTELL_USER -DUSG -DSECURE_SERVER -DRELEVANCE_FEEDBACK
 -DBOOLEANS -DPARTIALWORD -DLITERAL -DSOUND -DBIBDB" RANLIB=ranlib 
 TOP=/usr/ports/net/wais/work/freeWAIS-0.5 AR=ar ARFLAGS=cr
 gcc -I/usr/ports/net/wais/work/freeWAIS-0.5/include -D__bsdi__ -DBSD43
 -DTELL_USER -DUSG -DSECURE_SERVER -DRELEVANCE_FEEDBACK -DBOOLEANS -DPARTIALWORD
  -DLITERAL -DSOUND -DBIBDB -c freedir.c
 
 With mine, like this:
 
 make build CC=gcc33 CXX=g++33
 ===>  Extracting for freeWAIS-0.5
 >> Checksum OK for freeWAIS-0.5.tar.gz.
 ===>  Patching for freeWAIS-0.5
 ===>  Applying FreeBSD patches for freeWAIS-0.5
 ===>  Configuring for freeWAIS-0.5
 ===>  Building for freeWAIS-0.5
 make -f Makefile.freebsd TOP=/usr/ports/net/wais/work/freeWAIS-0.5
 gcc33 -o config config.c
 ./config >config.h
 mv ./config.h ./include/config.h
 cd lib; make CC=gcc33 CFLAGS="-O -pipe -mcpu=k6 -march=k6
 -I/usr/ports/net/wais/work/freeWAIS-0.5/include -D__bsdi__ -DBSD43 -DTELL_USER
 -DUSG -DSECURE_SERVER -DRELEVANCE_FEEDBACK -DBOOLEANS -DPARTIALWORD -DLITERAL
 -DSOUND -DBIBDB" RANLIB=ranlib  TOP=/usr/ports/net/wais/work/freeWAIS-0.5
 AR=ar ARFLAGS=cr
 gcc33 -O -pipe -mcpu=k6 -march=k6
 -I/usr/ports/net/wais/work/freeWAIS-0.5/include -D__bsdi__ -DBSD43 -DTELL_USER
 -DUSG -DSECURE_SERVER -DRELEVANCE_FEEDBACK -DBOOLEANS -DPARTIALWORD -DLITERAL
 -DSOUND -DBIBDB -c freedir.c
 
 Regards,
  Simon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308301310.h7UDAKcQ016825>