search for: ccopt

Displaying 20 results from an estimated 44 matches for "ccopt".

Did you mean: gccopt
2011 Jul 20
2
[PATCH 1/1] Modify --param support to include additional option
...| 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 push(@ccopt, $a); $operation = 'E'; - } elsif ( $a eq '--param' ) { - push(@ccopt, $a); - push(@ccopt, shift(@ARGV)); - } elsif ( $a =~ /^-[gp]/ || $a eq '-p' ) { + } elsif ( $a =~ /(--param)[=]?/ ) { + # support --param name=value and --param=name=value + push(@ccopt, $1); + $a...
2018 Sep 20
2
[PATCH 1/2] tools: Link OCaml programs with -runtime-variant _pic if available.
OCaml has a small runtime which is statically linked into the virt tools (providing things like GC and primitives). Since OCaml 4.03 it has been possible to select variants of this runtime, one of which is compiled with -fPIC, using ‘ocamlopt -runtime-variant _pic’. This has performance implications on i686, but is relatively free on other architectures. Since it (in theory) adds to the
2005 Mar 02
2
[PATCH] klcc compatibility with gcc
...le =~ /\.ii$/ ); @@ -109,7 +110,7 @@ } elsif ( $a =~ /^-Wl,(.*)$/ ) { # -Wl used to pass options to the linker push(@ldopt, split(/,/, $1)); - } elsif ( $a =~ /^-([fmwWQdO]|std=|ansi|pedantic)/ ) { + } elsif ( $a =~ /^-([fmwWQdODUI]|std=|ansi|pedantic)/ ) { # Options to gcc push(@ccopt, $a); } elsif ( $a =~ /^-[gp]/ ) { @@ -124,6 +125,7 @@ push(@ccopt, $a); $save_temps = 1; } elsif ( $a =~ '^-([cSE])$' ) { + push(@ccopt, $a); $operation = $1; } elsif ( $a eq '-shared' ) { $shared = 1;
2011 Mar 21
1
[PATCH] support the gcc parameter --param in klcc
...t 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 = shift(@ARGV)) ) { # gcc options, that force preprocessing mode push(@ccopt, $a); $operation = 'E'; + } elsif ( $a eq '--param' ) { + push(@ccopt, $a); + push(@ccopt, shift(@ARGV)); } elsif ( $a =~ /^-[gp]/ || $a eq '-p' ) { # Debugging options to gcc push(@ccopt, $a);
2011 Nov 25
2
[PATCH 6/7] Create 2 ocaml packages, libxen-4.1-ocaml and libxen-4.1-ocaml-dev.
...+LIBS_xenctrl = $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) ++LIBS_xenctrl_SYSTEM = $(LDLIBS_libxenctrl_SYSTEM) $(LDLIBS_libxenguest_SYSTEM) + + xenctrl_OBJS = $(OBJS) + xenctrl_C_OBJS = xenctrl_stubs +--- a/tools/ocaml/xenstored/Makefile ++++ b/tools/ocaml/xenstored/Makefile +@@ -36,7 +36,9 @@ + -ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/eventchn $(OCAML_TOPLEVEL)/libs/eventchn/xeneventchn.cmxa \ + -ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xc $(OCAML_TOPLEVEL)/libs/xc/xenctrl.cmxa \ + -ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xb $(OCAML_TOPLEVEL)/libs/xb/xenbus.cmxa \ +- -ccopt -L -ccopt $(XEN_ROOT)/t...
2020 Aug 20
0
[klibc:master] klcc: Treat CC, LD, STRIP as multiple words
...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 options @outopt = ('-o', $output) if ( defined($output) ); - $rv = mysystem($CC, @ccopt, @outopt, files_with_lang(\@files, \%flang)); + $rv = mysystem(@CC, @ccopt, @outopt, files_with_lang(\@files, \%flang)); } else { if ( scalar(@files) == 0 ) { die "$0: No input files!\n"; @@ -241,7 +241,7 @@ if ( $operation ne '' ) { push(@objs, $fo); push(@...
2010 Apr 05
3
[LLVMdev] Linking with C Library
...;> You need to figure out how to pass -rdynamic to the linker, like I said before. http://llvm.org/docs/tutorial/OCamlLangImpl7.html mentions it, but I don't know enough about the ocaml build process to say whether that'll work. I believe I'm already doing that, properly by passing -ccopt -rdynamic to ocamlopt: ocamlopt -cc g++ -ccopt -rdynamic -linkall $(LIBFILES) -o alpha $(OBJFILES) I've also tried writing a dummy "puts" function in a C file and linking that with my executable. nm -D then shows the following: 000000000054b690 T camlRuntime__rt_fputs_208 0000000000...
2011 Nov 29
6
[OCAML 0/7] V4 or so of the xen ocaml packaging patches
Here is the latest version of the patches to package the ocaml libraries. Changes since last time: * rename the packages from libxen-4.1-ocaml* to libxen-ocaml* - we wont be looking to install multiple concurrent versions of the same package, so the version doesn't need to be in the package name * Removed superfluous GENCONTROL definitions - dh_ocaml does what we need * Removed
2012 Nov 20
0
[PATCH 15 of 15] libxl: ocaml: add bindings for libxl_domain_create_new
...EVEL)/libs/xl -OBJS = xtl send_debug_keys list_domains raise_exception +OBJS = xtl send_debug_keys list_domains raise_exception build_domain -PROGRAMS = xtl send_debug_keys list_domains raise_exception +PROGRAMS = xtl send_debug_keys list_domains raise_exception build_domain xtl_LIBS = \ -ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xentoollog $(OCAML_TOPLEVEL)/libs/xentoollog/xentoollog.cmxa @@ -33,7 +33,13 @@ raise_exception_LIBS = \ raise_exception_OBJS = raise_exception -OCAML_PROGRAM = xtl send_debug_keys list_domains raise_exception +build_domain_LIBS = \ + -ccopt -L -ccopt $(OCAML...
2019 Jun 15
2
[libnbd PATCH] build: Fix OCaml build on Fedora 29
Once ocamlfind is installed, 'make' failed for me with: ocamlfind ocamlc -g -annot -safe-string -warn-error CDEFLMPSUVYZX+52-3 -ccopt '-gdwarf' -package unix -c NBD.ml -o NBD.cmo File "NBD.ml", line 1: Error: Could not find the .cmi file for interface NBD.mli. make[2]: *** [Makefile:823: NBD.cmo] Error 2 I'm not positive that this is the perfect fix, but it at least got the build working for me, and copies...
2011 Nov 15
6
[OCAML 0/7] Xen ocaml library packaging
This is an update to the patches sent out on 25th October. I expect, as before, that some of the larger patches won't get to the list so they are also available here: https://github.com/jonludlam/pkg-xen/commits/for-debian6. Changes since last mail: * I have split out the unrelated change to include 2 extra header files in libxen-dev * I have removed some instances of brace expansion
2005 Sep 30
14
pdb missing files?
...ocamlc -c -g Domain.mli /usr/local/bin/ocamlc -c -g Domain.ml /usr/local/bin/ocamlc -c -g Process.mli /usr/local/bin/ocamlc -c -g Process.ml /usr/local/bin/ocamlc -c -g PDB.ml /usr/local/bin/ocamlc -c -g debugger.ml /usr/local/bin/ocamlc -c -g server.ml /usr/local/bin/ocamlc -c -cc "gcc" -ccopt " -m32 -march=i686 -I ../../../tools/python/xen/lowlevel/xc -I ../../../tools/libxc -I ../libxendebug -I ./linux-2.6-module -I /usr/local/lib/ocaml -Wall -Werror -g \ \ -o pdb_caml_xc.o " pdb_caml_xc.c /usr/local/bin/ocamlc -c -cc &qu...
2010 Apr 06
0
[LLVMdev] Linking with C Library
...out how to pass -rdynamic to the linker, like I > said before. http://llvm.org/docs/tutorial/OCamlLangImpl7.html > mentions it, but I don't know enough about the ocaml build process to > say whether that'll work. > > I believe I'm already doing that, properly by passing -ccopt -rdynamic to > ocamlopt: > ocamlopt -cc g++ -ccopt -rdynamic -linkall $(LIBFILES) -o alpha $(OBJFILES) > > I've also tried writing a dummy "puts" function in a C file and linking that > with my executable. nm -D then shows the following: > > 000000000054b690 T cam...
2019 Jun 17
0
Re: [libnbd PATCH] build: Fix OCaml build on Fedora 29
On Sat, Jun 15, 2019 at 04:56:37PM -0500, Eric Blake wrote: > Once ocamlfind is installed, 'make' failed for me with: > > ocamlfind ocamlc -g -annot -safe-string -warn-error CDEFLMPSUVYZX+52-3 -ccopt '-gdwarf' -package unix -c NBD.ml -o NBD.cmo > File "NBD.ml", line 1: > Error: Could not find the .cmi file for interface NBD.mli. > make[2]: *** [Makefile:823: NBD.cmo] Error 2 > > I'm not positive that this is the perfect fix, but it at least got the > buil...
2009 Nov 09
1
File "lvs.ml", line 11... : Error: Unbound value Guestfs.create
On F12, I'm getting this build failure: ocamlfind ocamlopt -ccopt '-L ../../src/.libs' \ -warn-error A -I .. mlguestfs.cmxa lvs.ml -o lvs File "lvs.ml", line 11, characters 10-24: Error: Unbound value Guestfs.create make[2]: *** [lvs] Error 2 Admittedly with STREQ-related changes, but they seem unrelated...
2012 Jun 07
1
[PATCH] klcc --version is -V because -v is --verbose already (unbreak -v)
...ion: $a\n"; } - } elsif ( $a =~ /^(-print|-dump|--help|--version|-v)/ ) { + } elsif ( $a =~ /^(-print|-dump|--help|--version|-V)/ ) { # These share prefixes with some other options, so put this test early! # Pseudo-operations; just pass to gcc and don't do anything else push(@ccopt, $a); -- 1.7.10
2005 Oct 07
1
[ANNOUNCE] iproute2 (051007)
Fix one serious bug (in libnetlink), and a couple of other minor patches. http://developer.osdl.org/dev/iproute2/download/iproute2-051007.tar.gz Stephen Hemminger Reenable ip mroute Mike Frysinger Handle pfifo_fast that has no qopt without segfaulting Mads Martin Joergensen Trivial netem ccopts Jerome Borsboom Fix regression in ip addr (libnetlink) handling -- Stephen Hemminger <shemminger@osdl.org> OSDL http://developer.osdl.org/~shemminger
2010 Apr 05
0
[LLVMdev] Linking with C Library
On Sun, Apr 4, 2010 at 5:24 PM, Maxime Chevalier-Boisvert <mcheva at cs.mcgill.ca> wrote: > I tried running nm - D | grep "puts" on the binary compiled by the OCaml > compiler. It outputs the following: > > 08161b00 T camlRuntime__rt_fputs_208 > 08161a20 T camlRuntime__rt_puts_198 >        U fputs > > I'm assuming this means that fputs is linked
2011 Apr 08
3
[LLVMdev] dragonegg build failure
...case $UNAME_PROCESSOR in i386) eval $set_cc_for_build if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAM...
2019 Dec 13
1
[common PATCH] mlv2v: build as OCaml library
...AMLC) -where) +libmlv2v_a_CFLAGS = \ + $(WARN_CFLAGS) $(WERROR_CFLAGS) \ + -fPIC + +BOBJECTS = $(SOURCES_ML:.ml=.cmo) +XOBJECTS = $(BOBJECTS:.cmo=.cmx) + +OCAMLPACKAGES = \ + -package str,unix \ + -I $(builddir) +OCAMLPACKAGES_TESTS = $(MLV2V_CMA) + +OCAMLFLAGS = $(OCAML_FLAGS) $(OCAML_WARN_ERROR) -ccopt '$(CFLAGS)' + +if !HAVE_OCAMLOPT +OBJECTS = $(BOBJECTS) +else +OBJECTS = $(XOBJECTS) +endif + +libmlv2v_a_DEPENDENCIES = $(OBJECTS) + +$(MLV2V_CMA): $(OBJECTS) libmlv2v.a + $(OCAMLFIND) mklib $(OCAMLPACKAGES) \ + $(OBJECTS) $(libmlv2v_a_OBJECTS) -o mlv2v + +# OCaml dependencies. +.depen...