diff --git a/architecture/x86-64/pkg_gcc_post.conf b/architecture/x86-64/pkg_gcc_post.conf index 33ea201..e76abee 100644 --- a/architecture/x86-64/pkg_gcc_post.conf +++ b/architecture/x86-64/pkg_gcc_post.conf @@ -27,4 +27,11 @@ gcc_amd64_postmake() { do ln -fvs ../../lib/$x $x ; done } -hook_add postmake 5 "gcc_amd64_postmake" +if [ "$SDECFG_MULTILIB" = 1 ]; then + var_append patchfiles ' ' "$confdir/$pkg-$ver*multilib*.diff" + + hook_add postmake 5 "gcc_amd64_postmake" +else + var_append patchfiles ' ' "$confdir/$pkg-$ver*pure64*.diff" +fi +