[Top][All Lists]

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

marst-2.1, configure doesn't set CC

From: Keith Thompson
Subject: marst-2.1, configure doesn't set CC
Date: Tue, 5 Dec 2000 00:26:16 -0800 (PST)

I just tried to build marst-2.1 on a sparc-sun-solaris2.5.1 system.
I got the following output (edited slightly for clarity):

% cd marst-2.1
% ./configure --prefix=/projects/admin/kst/apps/sparc-sun-solaris2.5.1/marst-2.1
creating cache ./config.cache
checking for a BSD compatible install... 
/projects/admin/kst/bin/sparc-sun-solaris2.5.1/install -c
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
% make
cc -g -O2  -o marst  marst.c
cc: Warning: option -2 passed to ld

The generated Makefile contained the line "CFLAGS = -g -O2", but did
not contain a definition for CC.

I manually added "CC = gcc", then ran "make" and "make install", and it
built and installed without error.

If configure determines that it should use gcc, it needs to specify
"CC = gcc" in the Makefile.

Keith Thompson (The_Other_Keith) address@hidden  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center           <*>  <http://www.sdsc.edu/~kst>
Welcome to the last year of the 20th century.

reply via email to

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