# OmniOS will generate invalid compiler/linker options without this fix. diff -u -r samba-4.12.0rc1/wscript samba-4.12.0rc1-liu/wscript --- samba-4.12.0rc1/wscript tis jan. 21 15:10:42 2020 +++ samba-4.12.0rc1-liu/wscript tors jan. 23 21:45:15 2020 @@ -321,7 +321,8 @@ # allows us to find problems on our development hosts faster. # It also results in faster load time. - conf.add_as_needed() + conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True) +# conf.add_as_needed() if not conf.CHECK_NEED_LC("-lc not needed"): conf.ADD_LDFLAGS('-lc', testflags=False)