pkgsrc-Bugs archive

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

pkg/48740: lang/gcc44 to gcc46 linker fails because of whitespace



>Number:         48740
>Category:       pkg
>Synopsis:       lang/gcc44 to gcc46 linker fails because of whitespace
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 13 00:40:00 +0000 2014
>Originator:     Sevan
>Release:        current
>Organization:
>Environment:
Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; 
root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
>Description:
In LINK_LIBGCC_SPEC remove the space between LINKER_RPATH_FLAG and its
argument


It should be
-DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG)$(exec_prefix)/lib\"" \
Not
-DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG) $(exec_prefix)/lib\"" \

On Mac OS X 10.4.11 with XCode 2.5, build fails with 
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: -L: directory name missing
collect2: ld returned 1 exit status
>How-To-Repeat:
Attempt to build pkgsrc/lang{44,45,46} on Mac OS X 10.4
>Fix:
$NetBSD: patch-ac,v 1.1 2011/10/18 17:55:27 hans Exp $

--- gcc/Makefile.in.orig        2004-06-17 15:56:58.000000000 -0600
+++ gcc/Makefile.in
@@ -1944,6 +1944,7 @@ c-omp.o : c-omp.c $(CONFIG_H) $(SYSTEM_H
 # Language-independent files.
 
 DRIVER_DEFINES = \
+  -DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG)$(exec_prefix)/lib\"" \
   -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
   -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
   -DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \



Home | Main Index | Thread Index | Old Index