1diff -up freetype/builds/unix/configure.dt freetype/builds/unix/configure
2--- freetype/builds/unix/configure.dt	2017-02-01 22:14:45.206257952 +0100
3+++ freetype/builds/unix/configure	2017-02-01 22:16:31.076183707 +0100
4@@ -8858,7 +8858,7 @@
5       case $host_cpu in
6       powerpc)
7             # see comment about AmigaOS4 .so support
8-            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9+            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $lib'
10             archive_expsym_cmds=''
11         ;;
12       m68k)
13@@ -8874,7 +8874,7 @@
14 	allow_undefined_flag=unsupported
15 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16 	# support --undefined.  This deserves some investigation.  FIXME
17-	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18+	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags -o $lib'
19       else
20 	ld_shlibs=no
21       fi
22@@ -8908,7 +8908,7 @@
23       ;;
24
25     haiku*)
26-      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
27+      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $lib'
28       link_all_deplibs=yes
29       ;;
30
31@@ -9003,13 +9003,13 @@
32 	*Sun\ F*)			# Sun Fortran 8.3
33 	  tmp_sharedflag='-G' ;;
34 	esac
35-	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
36+	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags -o $lib'
37
38         if test yes = "$supports_anon_versioning"; then
39           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
40             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
41             echo "local: *; };" >> $output_objdir/$libname.ver~
42-            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
43+            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
44         fi
45
46 	case $cc_basename in
47@@ -9039,8 +9039,8 @@
48 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
49 	wlarc=
50       else
51-	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
52-	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
53+	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib'
54+	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-retain-symbols-file $wl$export_symbols -o $lib'
55       fi
56       ;;
57
58@@ -9058,8 +9058,8 @@
59
60 _LT_EOF
61       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
62-	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
63-	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64+	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib'
65+	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-retain-symbols-file $wl$export_symbols -o $lib'
66       else
67 	ld_shlibs=no
68       fi
69@@ -9087,8 +9087,8 @@
70 	  # requires that you compile everything twice, which is a pain.
71 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
72 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
73-	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
74-	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
75+	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $lib'
76+	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-retain-symbols-file $wl$export_symbols -o $lib'
77 	  else
78 	    ld_shlibs=no
79 	  fi
80@@ -9105,8 +9105,8 @@
81
82     *)
83       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
84-	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
85-	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
86+	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib'
87+	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-retain-symbols-file $wl$export_symbols -o $lib'
88       else
89 	ld_shlibs=no
90       fi
91@@ -9405,7 +9405,7 @@
92       case $host_cpu in
93       powerpc)
94             # see comment about AmigaOS4 .so support
95-            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
96+            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $lib'
97             archive_expsym_cmds=''
98         ;;
99       m68k)
100@@ -9674,7 +9674,7 @@
101
102     irix5* | irix6* | nonstopux*)
103       if test yes = "$GCC"; then
104-	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
105+	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
106 	# Try to use the -exported_symbol ld option, if it does not
107 	# work, assume that -exports_file does not work either and
108 	# implicitly export all symbols.
109@@ -9702,7 +9702,7 @@
110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
111 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
112 	if test yes = "$lt_cv_irix_exported_symbol"; then
113-          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
114+          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
115 	fi
116       else
117 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
118@@ -9797,7 +9797,7 @@
119     osf3*)
120       if test yes = "$GCC"; then
121 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
122-	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
123+	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
124       else
125 	allow_undefined_flag=' -expect_unresolved \*'
126 	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
127@@ -9810,7 +9810,7 @@
128     osf4* | osf5*)	# as osf3* with the addition of -msym flag
129       if test yes = "$GCC"; then
130 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
131-	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
132+	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
133 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
134       else
135 	allow_undefined_flag=' -expect_unresolved \*'
136@@ -13143,10 +13143,10 @@
137   XX_CFLAGS="-Wall"
138   case "$host" in
139   *-*-mingw*)
140-    XX_ANSIFLAGS="-pedantic"
141+    XX_ANSIFLAGS=""
142     ;;
143   *-*-aix*)
144-    XX_ANSIFLAGS="-pedantic"
145+    XX_ANSIFLAGS=""
146     ;;
147   *)
148     GCC_VERSION=`$CC -dumpversion`
149@@ -13195,7 +13195,7 @@
150 if ac_fn_c_try_compile "$LINENO"; then :
151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, adding to XX_ANSIFLAGS" >&5
152 $as_echo "ok, adding to XX_ANSIFLAGS" >&6; }
153-         XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
154+         XX_ANSIFLAGS="${XX_ANSIFLAGS}"
155
156 else
157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
158diff -up freetype/configure.dt freetype/configure
159