This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello! I have been having a problem with "make". I have a test program that calls a Perl function from a C program. With this typed-in compiler invocation, it works nicely: gcc -O2 -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include \ -I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE \ -L/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE \ -o power2 power2.c -lperl -lm My Makefile has the following definition power2 : power2.o $(CLINK) $(PERLLIB) -o $@ power2.c -lperl -lm where CLINK = gcc PERLLIB = -O2 -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include\ -I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE \ -L/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE "make" expands this to: gcc -O2 -DPERL_USE_SAFE_PUTENV -fno-strict-sliasing -I/usr/local/include \ -I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE \ -L/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE \ power2.c Make loses the '-o power2' and the '-lperl -lm'. Is there something I'm missing here? I've used makefiles on Unix systems before and have never seen this behavior. I've attached the output of "cygcheck -s -v -r > cygcheck.out" for system information. Thanks, Diane Patzer dianec@ccmr.cornell.edu
Attachment:
cygcheck.out
Description: Text document
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |