search for: klcc

Displaying 20 results from an estimated 108 matches for "klcc".

Did you mean: kcc
2020 Jul 25
2
[PATCH] klcc: Remove the need for bash
...`command -v` instead, we achieve the same result, in a POSIX compliant manor [1], potentially removing the unneeded bash dependency. 0 https://www.unix.com/man-page/posix/1p/type/ 1 https://www.unix.com/man-page/posix/1p/command/ Signed-off-by: Olliver Schinagl <oliver at schinagl.nl> --- klcc/Kbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klcc/Kbuild b/klcc/Kbuild index eae753ff..0e625802 100644 --- a/klcc/Kbuild +++ b/klcc/Kbuild @@ -35,7 +35,7 @@ targets := $(KLIBCCROSS)klcc quiet_cmd_klcc = GEN $@ cmd_klcc = $(PERL) $< $(srctree)/$(src)/klcc...
2012 Jun 07
1
[PATCH] klcc --version is -V because -v is --verbose already (unbreak -v)
Signed-off-by: Thorsten Glaser <tg at mirbsd.org> --- klcc/klcc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klcc/klcc.in b/klcc/klcc.in index 43d0984..e03bf3c 100644 --- a/klcc/klcc.in +++ b/klcc/klcc.in @@ -136,7 +136,7 @@ while ( defined($a = shift(@ARGV)) ) { } else { die "$0: unknown option: $a\n"; } -...
2005 Mar 02
2
[PATCH] klcc compatibility with gcc
Here's a patch to klcc.in from klibc-0.202. The context: I have an application, managed with GNU automake/autoconf. Packagers should be able to build the application with klibc if available, with plain gcc otherwise, as follows: $ cd ~/klibc-0.202 $ ... make linux symlink $ make bindir=$HOME/local/bin \ mandir=$H...
2020 Aug 29
0
[klibc:riscv64-enable-relax] Kbuild, klcc: Support multiple objects in KLIBCCRTSHARED
....org/?p=libs/klibc/klibc.git;a=commit;h=95a3123c94abc28c65f33c9589693dde9f140fe1 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 29 Aug 2020 22:29:52 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 29 Aug 2020 22:53:10 +0100 [klibc] Kbuild, klcc: Support multiple objects in KLIBCCRTSHARED On some architectures (notably riscv64) we need a wrapper for the main function that is statically linked even when using a shared library. * Allow architectures to override KLIBCCRTSHARED (they should always append to it) * Change klcc to use the lis...
2020 Aug 20
0
[klibc:master] klcc: Treat CC, LD, STRIP as multiple words
...t.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=7752eb456addbd1973e9c6b609294ccef89a65a2 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Thu, 20 Aug 2020 21:48:07 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Thu, 20 Aug 2020 21:50: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 +++++-...
2011 Jul 20
2
[PATCH 1/1] Modify --param support to include additional option
Later versions of gcc include an option in the form of --param=name=value. This patch adds support for this and continues to support the --param name=value option. Signed-off-by: Mike Pagano <mpagano at gentoo.org> --- klcc/klcc.in | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/klcc/klcc.in b/klcc/klcc.in index 711a832..5d00bfd 100644 --- a/klcc/klcc.in +++ b/klcc/klcc.in @@ -159,10 +159,17 @@ while ( defined($a = shift(@ARGV)) ) { # gcc options, that force preprocessing mode...
2005 May 25
1
[PATCH] klcc on multiple files
There's a problem in klibc 1.0.12: klcc -c t.c && klcc t.o && ./a.out works, but klcc t.c && ./a.out fails because open3() wants to close its input, and you can do that only once to STDIN. Attached patch makes "klcc t.c" work again. This might break the klcc from stdin option, but I can't tell...
2011 Mar 21
1
[PATCH] support the gcc parameter --param in klcc
This patch adds support to klcc for the --param parameter. Signed off by: Mike Pagano <mpagano at gentoo.org> --- klcc.in | 3 +++ 1 file changed, 3 insertions(+) --- klcc/klcc.in.orig 2011-03-21 08:35:02.130497501 -0400 +++ klcc/klcc.in 2011-03-21 08:47:21.025476293 -0400 @@ -159,6 +159,9 @@ while ( defined($a = shif...
2011 Apr 14
1
Bug#622814: klibc: patch to make klcc play nice with multiarch linux-libc-dev
...: patch User: ubuntu-devel at lists.ubuntu.com Usertags: origin-ubuntu natty ubuntu-patch Hi maks, Since the Ubuntu linux-libc-dev is now installing its asm headers to the multiarch /usr/include/<triplet>/ directory to allow co-installability, I've pushed the attached patch to Ubuntu so klcc knows to include this path when searching for headers. It should be safe to apply in Debian today, in advance of linux-libc-dev switching to multiarch, so I'm forwarding it for your consideration. (And it sounds like Ben is keen to switch l-l-d over soon anyway: http://lists.debian.org/debian...
2005 Mar 06
1
Detecting KLIBC from userspace
...ported to compile against klibc. So far there was no real issues, as the only thing they used was fscanf and feof not available presently in klibc (but easy to work around). Other than that there are really no way to easily check for installed klibc's other than trying to mangle the output of klcc (from adjusted configure.in): ----- dnl Enables linking to klibc dnl We need to do this before header checks, as we need to set CFLAGS AC_ARG_ENABLE(klibc, [ --enable-klibc Use this to link the tools to klibc. Set KLCC to the absolute file name of klcc if not...
2020 Jul 25
0
[klibc:master] klcc: Remove the need for bash
...p://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=23273aa05bdc564eb8ff0565d9df9c3edfffaee9 Author: Olliver Schinagl <oliver at schinagl.nl> AuthorDate: Sat, 25 Jul 2020 10:59:01 +0200 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sun, 26 Jul 2020 00:16:13 +0100 klcc: Remove the need for bash Currently, in the entire klibc bash is only used to identify the path of the perl binary. It is doing so using the bash built-in 'type' function, which is POSIX compliant according to [0], but the option -c is not. By using `command -v` instead, we achieve the sa...
2020 Jul 25
0
[PATCH] klcc: Remove the need for bash
...; compliant manor [1], potentially removing the unneeded bash dependency. > > 0 https://www.unix.com/man-page/posix/1p/type/ > 1 https://www.unix.com/man-page/posix/1p/command/ > > Signed-off-by: Olliver Schinagl <oliver at schinagl.nl> Applied, thanks. Ben. > --- > klcc/Kbuild | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/klcc/Kbuild b/klcc/Kbuild > index eae753ff..0e625802 100644 > --- a/klcc/Kbuild > +++ b/klcc/Kbuild > @@ -35,7 +35,7 @@ targets := $(KLIBCCROSS)klcc > quiet_cmd_klcc = GEN $@ > cm...
2019 Feb 19
0
[klibc:master] klcc: Enable stripping even if CONFIG_DEBUG_INFO is enabled
...t.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=f24c4d725f5b178d1027dca14203f57e8e78a34d Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Tue, 19 Feb 2019 02:31:39 +0000 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Tue, 19 Feb 2019 02:31:39 +0000 [klibc] klcc: Enable stripping even if CONFIG_DEBUG_INFO is enabled klcc should strip its output if the -s option is used, regardless of whether klibc is stripped. Use the standard $(STRIP) instead of $(KLIBCSTRIP) as the strip command. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- klcc/K...
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 Sep 08
3
[PATCH] klcc: Remove the need for bash
...needed bash dependency. >> >> 0 https://www.unix.com/man-page/posix/1p/type/ >> 1 https://www.unix.com/man-page/posix/1p/command/ >> >> Signed-off-by: Olliver Schinagl <oliver at schinagl.nl> > > Applied, thanks. > > Ben. > >> --- >> klcc/Kbuild | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/klcc/Kbuild b/klcc/Kbuild >> index eae753ff..0e625802 100644 >> --- a/klcc/Kbuild >> +++ b/klcc/Kbuild >> @@ -35,7 +35,7 @@ targets := $(KLIBCCROSS)klcc >> quiet_cmd_...
2006 May 15
1
howto to use klcc from a kernel tree?
Halo, I was wondering to no avail how to to use the klcc wrapper in order to build udev and module-init-tools. Does klibc has an install target when is embedded in the kernel tree? Is klcc available? .bill
2018 Feb 26
3
[PATCH 1/4] include sys/types.h in more places
Include sys/types.h to avoid compilation warnings: In file included from $LINUX/usr/include/linux/byteorder/little_endian.h:12:0, from $LINUX/usr/include/asm/byteorder.h:5, from $KLIBC/usr/klibc/../include/klibc/endian.h:11, from $KLIBC/usr/klibc/../include/endian.h:8, from $KLIBC/usr/klibc/pread.c:7:
2006 Jul 03
0
[PATCH]: klcc typo recognizing .S files
Trying to use klcc to compile an application I was getting gcc: no input files. Tracked it down to filename2lang having and extra space, causing .S files to be labeled "obj". Signed-off-by: Milton Miller <miltonm at bga.com> --- There is probably another bug that we called gcc without any files whe...
2012 Feb 06
1
[PATCH] Fix kernel headers install
...STALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install + $(Q)$(MAKE) -C $(KLIBCKERNELOBJ) ARCH=$(KLIBCARCH) INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install $(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/. $(Q)$(install-data) $(srctree)/klcc/klcc.1 $(INSTALLROOT)$(mandir)/man1/$(KCROSS)klcc.1 $(Q)$(install-bin) $(objtree)/klcc/$(KCROSS)klcc $(INSTALLROOT)$(bindir) -- 1.7.5.1.339.gb602ed
2005 May 20
0
[PATCH] let klcc pass input from STDIN to gcc
Some packages want to pass input to gcc via STDIN (iptables for example) This patch lets klcc accept '-' as a valid input filename, prevents it from setting -x in that case and changes the invocation of gcc from system() to open3() so that gcc's STDIN can be connected to klcc's STDIN. Daniel Thaler -------------- next part -------------- --- klibc-1.0.8/klcc.in.old 2005-05-...