summarylogtreecommitdiffstats
path: root/libtool32bitweirdness.diff
blob: df2f812c7912ac939adb1698072c131bed912a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- freetype-1.3.1.orig/ltconfig	1999-10-16 09:02:23.000000000 +0200
+++ freetype-1.3.1/ltconfig	2021-09-23 20:26:08.505033227 +0200
@@ -1226,8 +1226,8 @@
 
   *)
     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
-      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      archive_cmds='gcc -m32 -shared $libobjs -lc ${LDFLAGS} $linkopts ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='gcc -m32 -shared $libobjs -lc ${LDFLAGS} $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     else
       ld_shlibs=no
     fi