* building a cross libf2c
@ 1998-06-26 13:03 Richard Earnshaw
1998-06-27 10:50 ` Carlo Wood
1998-06-27 22:14 ` Jeffrey A Law
0 siblings, 2 replies; 4+ messages in thread
From: Richard Earnshaw @ 1998-06-26 13:03 UTC (permalink / raw)
To: egcs; +Cc: burley
The following patch (or something like it) is needed to allow
cross-building of libf2c to succeed, since the "libraries" subdir doesn't
exist for a cross build.
<date> Richard Earnshaw (rearnsha@arm.com)
* Makefile.in (BASE_FLAGS_TO_PASS): Pass TARGET_SUBDIR to submakes.
* libf2c/Makefile.in (TARGET_SUBDIR): Provide default definition.
(FLAGS_TO_PASS): Use TARGET_SUBDIR in definition of G2C_H_DIR.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: building a cross libf2c
1998-06-26 13:03 building a cross libf2c Richard Earnshaw
@ 1998-06-27 10:50 ` Carlo Wood
1998-06-27 23:01 ` Jeffrey A Law
1998-06-27 22:14 ` Jeffrey A Law
1 sibling, 1 reply; 4+ messages in thread
From: Carlo Wood @ 1998-06-27 10:50 UTC (permalink / raw)
To: richard.earnshaw; +Cc: egcs
Hey that would be great.
Renaming `libraries' to the target name is exactly what is
needed to solve the "lookfor_dir_with_trigger" problem with
dejagnu. It would be a logical change too imho.
If this patch is adopted, then isn't it possible to use the
target name anyway, also in a native build ?
| The following patch (or something like it) is needed to allow
| cross-building of libf2c to succeed, since the "libraries" subdir doesn't
| exist for a cross build.
|
| <date> Richard Earnshaw (rearnsha@arm.com)
|
| * Makefile.in (BASE_FLAGS_TO_PASS): Pass TARGET_SUBDIR to submakes.
|
| * libf2c/Makefile.in (TARGET_SUBDIR): Provide default definition.
| (FLAGS_TO_PASS): Use TARGET_SUBDIR in definition of G2C_H_DIR.
|
|
|
| --==_Exmh_16473424540
| Content-Type: application/x-patch ; name="f2cmake.patch"
| Content-Description: f2cmake.patch
| Content-Disposition: attachment; filename="f2cmake.patch"
|
| Index: Makefile.in
| ===================================================================
| RCS file: /egcs/carton/cvsfiles/egcs/Makefile.in,v
| retrieving revision 1.25
| diff -p -r1.25 Makefile.in
| *** Makefile.in 1998/06/19 05:42:13 1.25
| --- Makefile.in 1998/06/26 12:49:38
| *************** BASE_FLAGS_TO_PASS = \
| *** 352,357 ****
| --- 352,358 ----
| "EXPECT=$(EXPECT)" \
| "RUNTEST=$(RUNTEST)" \
| "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
| + "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
| "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
| "YACC=$(YACC)" \
| "exec_prefix=$(exec_prefix)" \
| Index: libf2c/Makefile.in
| ===================================================================
| RCS file: /egcs/carton/cvsfiles/egcs/libf2c/Makefile.in,v
| retrieving revision 1.9
| diff -p -r1.9 Makefile.in
| *** Makefile.in 1998/06/24 06:16:17 1.9
| --- Makefile.in 1998/06/26 12:49:38
| *************** CC = gcc
| *** 58,63 ****
| --- 58,66 ----
| CFLAGS = -g
| LIBCFLAGS = $(CFLAGS)
|
| + # This is correct for a native build, but will be overridden for a cross build
| + TARGET_SUBDIR = libraries
| +
| # List of variables to pass to sub-makes. This should not be needed'
| # by GNU make or Sun make (both of which pass command-line variable'
| # overrides thouh $(MAKE)) but may be needed by older versions.'
| *************** FLAGS_TO_PASS= \
| *** 66,72 ****
| "CC=$(CC)" \
| "CFLAGS=$(CFLAGS)" \
| "F2C_H_DIR=$(s)/libf2c" \
| ! "G2C_H_DIR=$(r)/libraries/libf2c" \
| "GCC_H_DIR=$(s)/include" \
| "LIBCFLAGS=$(LIBCFLAGS)" \
| "PICFLAG=$(PICFLAG)" \
| --- 69,75 ----
| "CC=$(CC)" \
| "CFLAGS=$(CFLAGS)" \
| "F2C_H_DIR=$(s)/libf2c" \
| ! "G2C_H_DIR=$(r)/$(TARGET_SUBDIR)/libf2c" \
| "GCC_H_DIR=$(s)/include" \
| "LIBCFLAGS=$(LIBCFLAGS)" \
| "PICFLAG=$(PICFLAG)" \
--
Carlo Wood <carlo@runaway.xs4all.nl>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: building a cross libf2c
1998-06-26 13:03 building a cross libf2c Richard Earnshaw
1998-06-27 10:50 ` Carlo Wood
@ 1998-06-27 22:14 ` Jeffrey A Law
1 sibling, 0 replies; 4+ messages in thread
From: Jeffrey A Law @ 1998-06-27 22:14 UTC (permalink / raw)
To: richard.earnshaw; +Cc: egcs, burley
In message < 199806261302.OAA27990@sun52.NIS.cambridge >you write:
> The following patch (or something like it) is needed to allow
> cross-building of libf2c to succeed, since the "libraries" subdir doesn't
> exist for a cross build.
>
> <date> Richard Earnshaw (rearnsha@arm.com)
>
> * Makefile.in (BASE_FLAGS_TO_PASS): Pass TARGET_SUBDIR to submakes.
>
> * libf2c/Makefile.in (TARGET_SUBDIR): Provide default definition.
> (FLAGS_TO_PASS): Use TARGET_SUBDIR in definition of G2C_H_DIR.
I ended up fixing this problem as part of nuking "libraries" and using
${target_alias} for native builds.
jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: building a cross libf2c
1998-06-27 10:50 ` Carlo Wood
@ 1998-06-27 23:01 ` Jeffrey A Law
0 siblings, 0 replies; 4+ messages in thread
From: Jeffrey A Law @ 1998-06-27 23:01 UTC (permalink / raw)
To: Carlo Wood; +Cc: richard.earnshaw, egcs
In message < 199806270106.DAA23719@jolan.ppro >you write:
> Hey that would be great.
> Renaming `libraries' to the target name is exactly what is
> needed to solve the "lookfor_dir_with_trigger" problem with
> dejagnu. It would be a logical change too imho.
>
> If this patch is adopted, then isn't it possible to use the
> target name anyway, also in a native build ?
We've been meaning to renaming that directory in the build tree to the
value of $target_alias for a while. Basically we weren't sure about
whether or not that was safe many months ago, so we used "libraries"
instead.
Since then we have decided that using ${target_alias} is safe and just
hadn't gotten around to making the change. I just made the change a
few minutes ago. Hopefully it will cure some of these problems.
jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-06-27 23:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-26 13:03 building a cross libf2c Richard Earnshaw
1998-06-27 10:50 ` Carlo Wood
1998-06-27 23:01 ` Jeffrey A Law
1998-06-27 22:14 ` Jeffrey A Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).