swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cant get EXTRACFLAGS to work


From: glen e. p. ropella
Subject: Re: Cant get EXTRACFLAGS to work
Date: Mon, 27 Mar 2000 21:07:55 -0800


Try EXTRAOBJCFLAGS.

At 09:47 PM 3/27/00 -0600, you wrote:
On RedHat 6.1 with Swarm-2.1 installed from SFI rpm, I can't get
profiling to work without going into the Makefile.common and adding -pg
to the CFLAGS.  Trying to add it like this:

$ make EXTRAOBJCFLAGS=-pg EXTRACFLAGS=-pg

Does pass through the -pg option in the compiling of each component of
the program, as I see here:

gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Werror -pg -D_GNU_SOURCE
-DAPPNAME=bug -DAPPVERSION=2.1
                                                      ^^^^
 address@hidden   -I/usr/include/swarm main.m

But the -pg never appears in any of the linking code, which I think the
CFLAG should control:

/bin/sh /usr/bin/libtool-swarm --mode link gcc -g -O2  -L/usr/lib/swarm
-rpath /usr/lib/swarm  -o bug Bug.o  main.o ObserverSwarm.o ModelSwarm.o
FoodSpace.o Parameters.o  -lswarm -lobjc
gcc -g -O2 -o .libs/bug Bug.o main.o ObserverSwarm.o ModelSwarm.o
FoodSpace.o Parameters.o -L/usr/lib/swarm /usr/lib/swarm/libswarm.so
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/space
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/analysis
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/simtoolsgui
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/simtools
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/random
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/tkobjc
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/tclobjc
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/objectbase
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/activity
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/defobj
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/collections
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/src/misc
-L/usr/src/redhat/BUILD/swarm-2.1/=without-hdf/libobjc -L/usr/lib
-L/usr/X11R6/lib -L/packages/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/
/usr/lib/swarm/libspace.so /usr/lib/swarm/libanalysis.so /
usr/lib/swarm/libsimtoolsgui.so /usr/lib/swarm/libsimtools.so
/usr/lib/swarm/librandom.so /usr/lib/swarm/libtkobjc.so
/usr/lib/swarm/libtclobjc.so /usr/lib/swarm/libobjectbase.so
/usr/lib/swarm/libactivity.so /usr/lib/swarm/libdefobj.so
/usr/lib/swarm/libcollections.so /usr/lib/swarm/libmisc.so
/usr/lib/swarm/libobjc.so -lgcc -lBLT -ltk8.0 -ltcl8.0 -lXpm -lpng -lz
-lX11 -lm -ldl /usr/lib/swarm/libswarm.so /usr/lib/swarm/libobjc.so
-L/packages/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/ -lgcc
/usr/lib/swarm/libobjc.so -Wl,--rpath -Wl,/usr/lib/swarm -Wl,--rpath
-Wl,/usr/lib -Wl,--rpath -Wl,/usr/X11R6/lib

If I just hack the CFLAGS in Makefile.common, it works OK to get
profiling.

--
Paul E. Johnson                         email: address@hidden
Dept. of Political Science              http://lark.cc.ukans.edu/~pauljohn
University of Kansas                    Office: (785) 864-9086
Lawrence, Kansas 66045                  FAX: (785) 864-5700

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.

--
glen e. p. ropella =><= The front line is everywhere. Hail Eris!
Home: http://forager.swarm.com/~gepr              (505) 424-0448
Work: http://www.swarm.com                        (505) 995-0818

                 ==================================
  Swarm-Support is for discussion of the technical details of the day
  to day usage of Swarm.  For list administration needs (esp.
  [un]subscribing), please send a message to <address@hidden>
  with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]