Alan W. Irwin wrote:
> I am pretty satisfied with the CMake build system improvements I have just
> checked in to substantially refine how we deal with the Ada interface and
> examples.  Here is what I have done.
> 
> * I have implemented a limited Ada language support for CMake.  As a result
> of this effort, add_library should now work cross-platform, but
> add_executable is not available since it needs a change to the core of CMake
> to do the required gnatbind and gnatlink.
> 
> * I have substantially refined the configuration and taken advantage of the
> new Ada language support so that the build of libplplotada and the build of
> the example (still done with a custom rule rather than add_executable
> because of above limitation in the language support ) should "just work"
> cross-platform.

I'm having trouble on Fedora 6 and development, which use gnat 4.1.1 and 
4.1.2.  First off, libgnat appears to be /usr/lib/libgnat-4.1.so.

Also, it appears to be picking up my CFLAGS and passing that to the 
gnatmake line:


cd /builddir/build/BUILD/plplot-5.7.2/fedora/examples/ada && 
/usr/bin/gnatmake -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 
-march=i386 -mtune=generic -fasynchronous-unwind-tables   -fPIC 
-aI/builddir/build/BUILD/plplot-5.7.2/examples/ada 
-aI/builddir/build/BUILD/plplot-5.7.2/bindings/ada 
-aL/builddir/build/BUILD/plplot-5.7.2/fedora/bindings/ada/CMakeFiles/plplotadad.dir
 
x01a.adb -largs -rdynamic 
-L/builddir/build/BUILD/plplot-5.7.2/fedora/bindings/ada 
-L/builddir/build/BUILD/plplot-5.7.2/fedora/src 
-L/builddir/build/BUILD/plplot-5.7.2/fedora/lib/csa 
-L/builddir/build/BUILD/plplot-5.7.2/fedora/lib/nn -lplplotadad 
-lplplotd -lltdl -ldl -lm -lcsirocsa -lcsironn -lqhull -lfreetype 
-lgnat-4.1 
-Wl,-rpath,/builddir/build/BUILD/plplot-5.7.2/fedora/bindings/ada:/builddir/build/BUILD/plplot-5.7.2/fedora/src:/builddir/build/BUILD/plplot-5.7.2/fedora/lib/csa:/builddir/build/BUILD/plplot-5.7.2/fedora/lib/nn
gnatmake: unknown switch: --param=ssp-buffer-size=4

Does it make sense to pass in CFLAGS?  I'm not sure I can see why it is 
either.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  [EMAIL PROTECTED]
Boulder, CO 80301              http://www.cora.nwra.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to