delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/22/19:29:08

X-Spam-Check-By: sourceware.org
Message-ID: <44EB9366.F1F9A629@dessent.net>
Date: Tue, 22 Aug 2006 16:29:42 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: A build problem of C++ code on Cygwin
References: <Pine DOT OSF DOT 4 DOT 21 DOT 0608230007580 DOT 31690-100000 AT ax0rm1 DOT roma1 DOT infn DOT it> <44EB8B19 DOT 2E0E4C69 AT dessent DOT net>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------C9F159AEAAB20C7BCF92DC52
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Brian Dessent wrote:

> I've seen this a million times.  It's a makefile that doesn't know about
> $EXEEXT and assumes that executables have no extension.  Because of this
> one of the stock built-in make rules gets invoked instead of the proper
> link command.  Look in the Makefile for the rule that generates the
> final binary and I'm willing to bet that it has no $EXEEXT.  This works
> fine on linux because there is no extension for executables there.

Indeed.  The attached patch (and then re-running automake at the
top-level) causes the build to work correctly -- or at least get past
the problem you reported, I don't feel like waiting for the full build.

You should report this upstream.  The change should be safe for any
platform.

Brian
--------------C9F159AEAAB20C7BCF92DC52
Content-Type: text/plain; charset=us-ascii;
 name="lidia-exeext.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="lidia-exeext.patch"

--- library/base/Makefile.am.orig	2006-03-06 04:22:06.000000000 -0800
+++ library/base/Makefile.am	2006-08-22 16:17:54.937500000 -0700
@@ -396,7 +396,7 @@ CLEANFILES = $(LIDIA_CONFIG_INCLUDEDIR)/
 
 noinst_HEADERS = $(LIDIA_CONFIG_INCLUDEDIR)/bytes_to_int_flag.h
 
-$(LIDIA_CONFIG_INCLUDEDIR)/bytes_to_int_flag.h: bytes_to_int_flag_generator
+$(LIDIA_CONFIG_INCLUDEDIR)/bytes_to_int_flag.h: bytes_to_int_flag_generator$(EXEEXT)
 	./bytes_to_int_flag_generator > $@
 
 noinst_PROGRAMS = bytes_to_int_flag_generator


--------------C9F159AEAAB20C7BCF92DC52
Content-Type: text/plain; charset=us-ascii

--
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/
--------------C9F159AEAAB20C7BCF92DC52--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019