Displaying 10 results from an estimated 10 matches for "makeklcc".
Did you mean:
makecc
2005 Mar 09
1
makeklcc.pl passes '' to ld if LDFLAGS empty among things
...roblem that klcc is generated
like:
-----
@LDFLAGS = ( '' )
-----
which then causes '' to get passed to ld, which gives:
-----
/usr/bin/ld: : No such file: No such file or directory
-----
One of two ways (I tried over here at least) to fix it, namely the quick
hack:
-----
--- 1/makeklcc.pl 2005-03-10 00:22:03.000000000 +0200
+++ 2/makeklcc.pl 2005-03-10 00:50:32.000000000 +0200
@@ -13,7 +13,11 @@
my($s) = @_;
$s =~ s/\s+/\',\'/g;
- return "(\'".$s."\')";
+ if ( $s ne "" ) {
+ return "(\'"...
2020 Aug 20
0
[klibc:master] klcc: Treat CC, LD, STRIP as multiple words
...:09 +0100
[klibc] klcc: Treat CC, LD, STRIP as multiple words
LLVM cross-builds use the same front-end programs but with a
"-target <triplet>" option. Add support for this.
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
klcc/klcc.in | 12 ++++++------
klcc/makeklcc.pl | 10 +++++-----
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/klcc/klcc.in b/klcc/klcc.in
index 43d0984a..7b3b8f3b 100644
--- a/klcc/klcc.in
+++ b/klcc/klcc.in
@@ -218,7 +218,7 @@ if ( $debugging ) {
if ( $operation ne '' ) {
# Just run gcc with the appropriate...
2006 Jan 25
1
Don't hardcode paths in klcc
Stop makeklcc.pl from hardcoding paths of cc, ld and strip in the klcc
script it generates. Using hardcoded paths is generally a bad idea.
First, the whole idea of $PATH is that you don't need to hardcode
paths. Second, klcc is a Perl script but my hardcoding the paths
you make it less portable.
Signed-of...
2020 Jul 25
2
[PATCH] klcc: Remove the need for bash
...$(obj)/$(KLIBCCROSS)klibc.config \
- $(shell bash -c 'type -p $(PERL)') \
+ $(shell command -v $(PERL)) \
> $@ || ( rm -f $@ ; exit 1 ) && \
chmod a+x $@
$(obj)/$(KLIBCCROSS)klcc: $(src)/makeklcc.pl $(src)/klcc.in \
--
2.27.0
2005 Apr 09
0
not everybody uses bash
...> $@
+ echo "STRIP=$(shell which strip)" >> $@
echo 'STRIPFLAGS=$(STRIPFLAGS)' >> $@
echo 'EMAIN=$(EMAIN)' >> $@
echo 'BITSIZE=$(BITSIZE)' >> $@
@@ -34,7 +34,7 @@
$(CROSS)klcc: klcc.in $(CROSS)klibc.config makeklcc.pl
$(PERL) makeklcc.pl klcc.in $(CROSS)klibc.config \
- $(shell bash -c 'type -p $(PERL)') > $@ || ( rm -f $@ ; exit 1 )
+ $(shell which perl) > $@ || ( rm -f $@ ; exit 1 )
chmod a+x $@
# Han
--
_ (.".) _ And...
2020 Jul 25
0
[klibc:master] klcc: Remove the need for bash
...$(obj)/$(KLIBCCROSS)klibc.config \
- $(shell bash -c 'type -p $(PERL)') \
+ $(shell command -v $(PERL)) \
> $@ || ( rm -f $@ ; exit 1 ) && \
chmod a+x $@
$(obj)/$(KLIBCCROSS)klcc: $(src)/makeklcc.pl $(src)/klcc.in \
2020 Jul 25
0
[PATCH] klcc: Remove the need for bash
.../$(KLIBCCROSS)klibc.config \
> - $(shell bash -c 'type -p $(PERL)') \
> + $(shell command -v $(PERL)) \
> > $@ || ( rm -f $@ ; exit 1 ) && \
> chmod a+x $@
> $(obj)/$(KLIBCCROSS)klcc: $(src)/makeklcc.pl $(src)/klcc.in \
--
Ben Hutchings
Theory and practice are closer in theory than in practice - John Levine
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message...
2020 Sep 08
3
[PATCH] klcc: Remove the need for bash
...config \
>> - $(shell bash -c 'type -p $(PERL)') \
>> + $(shell command -v $(PERL)) \
>> > $@ || ( rm -f $@ ; exit 1 ) && \
>> chmod a+x $@
>> $(obj)/$(KLIBCCROSS)klcc: $(src)/makeklcc.pl $(src)/klcc.in \
This doesn't work with older versions of make. ?make 4.2.1 seems common
now and does not support $(shell command).
$ cat Makefile
$(info take1: $(shell command -v ls))
$(info take2: $(shell bash -c 'type -p ls'))
all:
@true
$ make-3.81/make
make: command:...
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...c' >> klcc/klibc.config
echo 'bindir=/tmp/klibc-install/lib/klibc/bin' >> klcc/klibc.config
echo 'libdir=/tmp/klibc-install/lib/klibc/lib' >> klcc/klibc.config
echo 'includedir=/tmp/klibc-install/lib/klibc/include' >> klcc/klibc.config
perl klcc/makeklcc.pl /root/ofs/trunk/packages/klibc-2.0.2/klcc/klcc.in klcc/klibc.config /usr/bin/perl > klcc/klcc || ( rm -f klcc/klcc ; exit 1 ) && chmod a+x klcc/klcc
:
make -f /root/ofs/trunk/packages/klibc-2.0.2/scripts/Kbuild.klibc obj=.
make -rR -f /root/ofs/trunk/packages/klibc-2.0.2/scripts/Kbuil...
2013 Aug 21
5
Build problems: klibc with Linux 3.10.7
On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote:
> >
> Find attached two patches I have in order to build klibc 2.0.2
> against kernel 3.8.13
> We had to introduce those patches when going from kernel 3.6 to kernel 3.7
> Hope it helps.
>
those patches are wrong and again very brittle.
just use the way it is described in `make help':
A) cd ~/src/linux