aballier    17/10/04 08:55:23

  Added:                020_all_configure.patch
                        050_all_objinfoldflags.patch series
  Log:
  add ocaml 4.06 patches

Revision  Changes    Path
1.1                  src/patchsets/ocaml/4.06.0/020_all_configure.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/ocaml/4.06.0/020_all_configure.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/ocaml/4.06.0/020_all_configure.patch?rev=1.1&content-type=text/plain

Index: 020_all_configure.patch
===================================================================
Index: ocaml-4.06.0-beta1/configure
===================================================================
--- ocaml-4.06.0-beta1.orig/configure
+++ ocaml-4.06.0-beta1/configure
@@ -577,6 +577,10 @@ case "$cc,$target" in
     echo "#endif" >> m.h;;
 esac
 
+# Append user flags
+common_cflags="$common_cflags ${CFLAGS}"
+ldflags="$ldflags ${LDFLAGS}"
+
 # Configure compiler options to use in further tests.
 
 export cclibs ldflags
@@ -868,7 +872,7 @@ if $with_sharedlibs; then
     *-*-linux*|*-*-freebsd[3-9]*|*-*-freebsd[1-9][0-9]*\
     |*-*-openbsd*|*-*-netbsd*|*-*-dragonfly*|*-*-gnu*|*-*-haiku*)
       sharedcccompopts="-fPIC"
-      mksharedlib="$cc -shared"
+      mksharedlib="$cc ${LDFLAGS} -shared"
       ldflags="$ldflags -Wl,-E"
       rpath="-Wl,-rpath,"
       mksharedlibrpath="-Wl,-rpath,"



1.1                  src/patchsets/ocaml/4.06.0/050_all_objinfoldflags.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/ocaml/4.06.0/050_all_objinfoldflags.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/ocaml/4.06.0/050_all_objinfoldflags.patch?rev=1.1&content-type=text/plain

Index: 050_all_objinfoldflags.patch
===================================================================
Index: ocaml-4.06.0-beta1/tools/Makefile
===================================================================
--- ocaml-4.06.0-beta1.orig/tools/Makefile
+++ ocaml-4.06.0-beta1/tools/Makefile
@@ -314,7 +314,7 @@ DEF_SYMBOL_PREFIX = '-Dsymbol_prefix=""'
 endif
 
 objinfo_helper$(EXE): objinfo_helper.c ../byterun/caml/s.h
-       $(CC) $(CFLAGS) $(CPPFLAGS) -I../byterun $(OUTPUTEXE)$@ \
+       $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -I../byterun $(OUTPUTEXE)$@ \
           $(DEF_SYMBOL_PREFIX) $(LIBBFD_INCLUDE) $< $(LIBBFD_LINK)
 
 OBJINFO=../compilerlibs/ocamlcommon.cma \



1.1                  src/patchsets/ocaml/4.06.0/series

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/ocaml/4.06.0/series?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/ocaml/4.06.0/series?rev=1.1&content-type=text/plain

Index: series
===================================================================
020_all_configure.patch
050_all_objinfoldflags.patch




Reply via email to