Advertisement
Guest User

ELLCC patch

a guest
Aug 29th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.95 KB | None | 0 0
  1. Index: build-setup
  2. ===================================================================
  3. --- build-setup (revision 6680)
  4. +++ build-setup (working copy)
  5. @@ -149,7 +149,7 @@
  6.  # OG: Trimmed down to detect specific case to be supported
  7.  if [ "x${ecc}" != "x" ] ; then
  8.    # An ecc exists, use it to compile.
  9. -  if [ "${tuple}" == "" ] ; then
  10. +  if [ "${tuple}" = "" ] ; then
  11.      # Find a tuple for this host.
  12.      tuple=`cd ${prefix}/libecc/config; echo ${host}*-linux*`
  13.      libtuple=${tuple}
  14. Index: libecc/Makefile
  15. ===================================================================
  16. --- libecc/Makefile (revision 6680)
  17. +++ libecc/Makefile (working copy)
  18. @@ -63,6 +63,7 @@
  19.     mv ../include/bits ../include/`../../bin/ecc-getincarch $*`/bits ; \
  20.     (cd ../include/`../../bin/ecc-getincarch $*`; rm -rf machine; ln -sf bits machine) ;\
  21.     mkdir -p ../lib/$* ; \
  22. +   rm ../lib/$*/*.la ; \
  23.     cp $*/install/lib/*.a $*/install/lib/*.o ../lib/$*
  24.  
  25.  $(Configs):: musl.install
  26. @@ -211,6 +212,7 @@
  27.     echo Installing expat for $* ; \
  28.     mkdir -p ../lib/$* ; \
  29.     cp $*/.libs/*.a ../lib/$* ; \
  30. +   cp $*/.libs/*.la ../lib/$* ; \
  31.     cp -p ../src/expat/lib/expat.h ../include ; \
  32.     cp -p ../src/expat/lib/expat_external.h ../include
  33.  
  34. @@ -422,7 +424,7 @@
  35.       cd libmetalink-build/$* ; \
  36.       CC="$(ELLCC)/bin/ecc" \
  37.              CFLAGS="-target $* $(CFLAGS)" \
  38. -            LDFLAGS="-target $*" \
  39. +            LDFLAGS="-target $* -L$(ELLCC)/libecc/lib/$*" \
  40.         CXX="$(ELLCC)/bin/ecc++" \
  41.              CXXFLAGS="-target $* $(CXXFLAGS)" \
  42.              CPP="$(ELLCC)/bin/ecc -E -target $*" \
  43. @@ -516,7 +518,7 @@
  44.       cd curl-build/$* ; \
  45.       CC="$(ELLCC)/bin/ecc" \
  46.              CFLAGS="-target $* $(CFLAGS)" \
  47. -            LDFLAGS="-target $*" \
  48. +            LDFLAGS="-target $* -L$(ELLCC)/libecc/lib/$*" \
  49.         CXX="$(ELLCC)/bin/ecc++" \
  50.              CXXFLAGS="-target $* $(CXXFLAGS)" \
  51.              CPP="$(ELLCC)/bin/ecc -E -target $*" \
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement