--- curl-7.47.1/config.sub.orig 2016-01-27 07:41:40.000000000 +0000
+++ curl-7.47.1/config.sub 2016-03-07 16:32:19.704765691 +0000
@@ -810,6 +810,10 @@
microblaze*)
basic_machine=microblaze-xilinx
;;
+ midipix)
+ basic_machine=x86_64-pc
+ os=-midipix
+ ;;
mingw64)
basic_machine=x86_64-pc
os=-mingw64
@@ -1390,7 +1394,7 @@
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* | -cegcc* \
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
+ | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
| -linux-newlib* | -linux-musl* | -linux-uclibc* \
| -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
--- curl-7.47.1/configure.orig 2016-02-07 15:43:48.000000000 +0100
+++ curl-7.47.1/configure 2016-03-08 11:33:24.125711200 +0100
@@ -14297,6 +14297,18 @@
dynamic_linker='GNU/Linux ld.so'
;;
+midipix*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}"
+ soname_spec="\${libname}\${release}\${shared_ext}\$major"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=no
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
netbsdelf*-gnu)
version_type=linux
need_lib_prefix=no
@@ -42993,3 +43005,15 @@
fi
+# a transitional workaround...
+case $host_os in
+ midipix*)
+ cp $ac_confdir/libtool.midipix libtool || exit 2
+
+ sed -i -e 's/@cbb_host_os@/'$host'/g' \
+ -e 's/@cbb_build_alias@/'$build_alias'/g' \
+ -e 's/@cbb_build_os@/'$build_os'/g' \
+ -e 's/@cbb_build@/'$build'/g' libtool || exit 2
+ ;;
+esac
+
--- curl-7.47.1/lib/Makefile.in.orig 2016-02-07 14:43:49.000000000 +0000
+++ curl-7.47.1/lib/Makefile.in 2016-06-10 00:07:28.334457112 +0000
@@ -243,7 +243,7 @@
am__v_lt_1 =
libcurl_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(libcurl_la_CFLAGS) \
- $(CFLAGS) $(libcurl_la_LDFLAGS) $(LDFLAGS) -o $@
+ $(CFLAGS) $(LDFLAGS) -o $@
libcurlu_la_LIBADD =
am__objects_6 = libcurlu_la-file.lo libcurlu_la-timeval.lo \
libcurlu_la-base64.lo libcurlu_la-hostip.lo \
@@ -842,7 +842,7 @@
vtls/$(DEPDIR)/$(am__dirstamp)
libcurl.la: $(libcurl_la_OBJECTS) $(libcurl_la_DEPENDENCIES) $(EXTRA_libcurl_la_DEPENDENCIES)
- $(AM_V_CCLD)$(libcurl_la_LINK) -rpath $(libdir) $(libcurl_la_OBJECTS) $(libcurl_la_LIBADD) $(LIBS)
+ $(AM_V_CCLD)$(libcurl_la_LINK) -rpath $(libdir) $(libcurl_la_OBJECTS) $(libcurl_la_LIBADD) $(LIBS) $(libcurl_la_LDFLAGS)
vtls/libcurlu_la-openssl.lo: vtls/$(am__dirstamp) \
vtls/$(DEPDIR)/$(am__dirstamp)
vtls/libcurlu_la-gtls.lo: vtls/$(am__dirstamp) \