diff --git a/autoconf/m4/libtool.m4 b/autoconf/m4/libtool.m4 index dfb6e0f62e8..f4260d0b4f4 100644 --- a/autoconf/m4/libtool.m4 +++ b/autoconf/m4/libtool.m4 @@ -2099,7 +2099,7 @@ reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then - reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' + reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi