Skip to content
Snippets Groups Projects
Commit 1fd06de4 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

aclocal.m4: allow override of dllwrap and windres when cross-compiling


Commit 66108864 reverted ability
to override 'dllwrap' and 'windres' paths when cross-compiling.

After this change (and a few libraries/Win32 patches) I was able
to build cross-compiler to windows:

    $ ./configure --target=i686-w64-mingw32 \
        DllWrap=i686-w64-mingw32-dllwrap \
        Windres=i686-w64-mingw32-windres

Later both 'dllwrap' and 'windres' should be derived from --target=
as we do now for 'CC', 'AR', 'NM' and others.

Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
parent 033f897a
No related branches found
No related tags found
No related merge requests found
......@@ -479,8 +479,18 @@ AC_DEFUN([FP_SETTINGS],
SettingsLdCommand="$LdCmd"
SettingsArCommand="$ArCmd"
SettingsPerlCommand="$PerlCmd"
SettingsDllWrapCommand="/bin/false"
SettingsWindresCommand="/bin/false"
if test -z "$DllWrap"
then
SettingsDllWrapCommand="/bin/false"
else
SettingsDllWrapCommand="$DllWrap"
fi
if test -z "$Windres"
then
SettingsWindresCommand="/bin/false"
else
SettingsWindresCommand="$Windres"
fi
SettingsLibtoolCommand="libtool"
SettingsTouchCommand='touch'
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment