Re: autoreconf: g++ compiler options in configure.ac
- From: markhobley@xxxxxxxxxxxxxxxxxxxxxxxxxxx (Mark Hobley)
- Date: Sat, 22 Mar 2008 12:08:04 GMT
Guido Scholz <guido.scholz@xxxxxxxxxxxxx> wrote:
that is no option valid for configure.ac but for Makefile.am.
Ok. I have moved the target there.
Please refer to the automake/autoconf handbooks.
Yeah. I am working through these, but they are badly indexed, so it
is extremely difficult to find the appropriate information, and google is
taking me to forums with compilation problems, rather than to answers to
my queries (even if I apply a site:gnu.org filter.)
I am making progress with this compilation. I now have:
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall
-Wno-trigraphs -g -O2 -MT telnet.o -MD -MP -MF .deps/telnet.Tpo -c -o
telnet.o ../../src/telnet.cc
mv -f .deps/telnet.Tpo .deps/telnet.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o ../../src/main.cc
mv -f .deps/main.Tpo .deps/main.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT commands.o -MD -MP -MF .deps/commands.Tpo -c -o commands.o
.../../src/commands.cc
.../../src/commands.cc: In function ???int shell(int, const char**)???:
.../../src/commands.cc:1350: warning: missing sentinel in function call
.../../src/commands.cc:1352: warning: missing sentinel in function call
(I ignore these warnings, because they occur using the vendor supplied
makefile also.)
mv -f .deps/commands.Tpo .deps/commands.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT tn3270.o -MD -MP -MF .deps/tn3270.Tpo -c -o tn3270.o
.../../src/tn3270.cc
mv -f .deps/tn3270.Tpo .deps/tn3270.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT terminal.o -MD -MP -MF .deps/terminal.Tpo -c -o terminal.o
.../../src/terminal.cc
mv -f .deps/terminal.Tpo .deps/terminal.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT authenc.o -MD -MP -MF .deps/authenc.Tpo -c -o authenc.o
.../../src/authenc.cc
mv -f .deps/authenc.Tpo .deps/authenc.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT utilities.o -MD -MP -MF .deps/utilities.Tpo -c -o utilities.o
.../../src/utilities.cc
mv -f .deps/utilities.Tpo .deps/utilities.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT network.o -MD -MP -MF .deps/network.Tpo -c -o network.o
.../../src/network.cc
mv -f .deps/network.Tpo .deps/network.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT ring.o -MD -MP -MF .deps/ring.Tpo -c -o ring.o
.../../src/ring.cc
mv -f .deps/ring.Tpo .deps/ring.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT sys_bsd.o -MD -MP -MF .deps/sys_bsd.Tpo -c -o sys_bsd.o
.../../src/sys_bsd.cc
mv -f .deps/sys_bsd.Tpo .deps/sys_bsd.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT genget.o -MD -MP -MF .deps/genget.Tpo -c -o genget.o
.../../src/genget.cc
mv -f .deps/genget.Tpo .deps/genget.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT environ.o -MD -MP -MF .deps/environ.Tpo -c -o environ.o
.../../src/environ.cc
mv -f .deps/environ.Tpo .deps/environ.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../../src -Ddebian -D_GNU_SOURCE
-DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti -fno-exceptions -Wall -Wno-trigraphs
-g -O2 -MT netlink.o -MD -MP -MF .deps/netlink.Tpo -c -o netlink.o
.../../src/netlink.cc
mv -f .deps/netlink.Tpo .deps/netlink.Po
I dont know what all that mv -f .deps/ stuff is trying to do. The vendor
supplied makefile did not do this. Presumably, I just ignore this (Can I
suppress this?)
Finally, comes the linking of the executable:
g++ -Ddebian -D_GNU_SOURCE -DUSE_TERMIO -DKLUDGELINEMODE -fno-rtti
-fno-exceptions -Wall -Wno-trigraphs -g -O2 -o telnet telnet.o main.o
commands.o tn3270.o terminal.o authenc.o utilities.o network.o ring.o
sys_bsd.o genget.o environ.o netlink.o
telnet.o: In function `my_setupterm':
.../../src/telnet.cc:612: undefined reference to `tgetent'
collect2: ld returned 1 exit status
It seems odd to be using g++ as a linker, but the original vendor
supplied makefile did this also:
g++ commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o
tn3270.o utilities.o genget.o environ.o netlink.o -lncurses -o telnet
There is a problem with my build options being used for the final
linker stage.
How do I suppress the build options for the final generate g++ command,
but retain the build options for the rest of the compilation process?
Regards,
Mark.
--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
.
- Follow-Ups:
- Re: autoreconf: g++ compiler options in configure.ac
- From: Markus Kossmann
- Re: autoreconf: g++ compiler options in configure.ac
- From: Guido Scholz
- Re: autoreconf: g++ compiler options in configure.ac
- References:
- autoreconf: g++ compiler options in configure.ac
- From: Mark Hobley
- Re: autoreconf: g++ compiler options in configure.ac
- From: Guido Scholz
- autoreconf: g++ compiler options in configure.ac
- Prev by Date: Re: autoreconf: g++ compiler options in configure.ac
- Next by Date: Re: autoreconf: g++ compiler options in configure.ac
- Previous by thread: Re: autoreconf: g++ compiler options in configure.ac
- Next by thread: Re: autoreconf: g++ compiler options in configure.ac
- Index(es):