pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sudo 1.8.15 fails to build on Darwin (-static-libgcc weirdness)

> Hi,
> The modified patch applies, but does not have the desired effect.  The
> test passes (the flag is passed to the linker ok), but when the time
> comes for linking the flag is passed directly to clang, which chokes on
> it, as I believe you noticed:
> libtool: link: clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libsudo_util.0.dylib  .libs/event.o .libs/fatal.o .libs/key_val.o .libs/gethostname.o .libs/gettime.o .libs/gidlist.o .libs/lbuf.o .libs/locking.o .libs/parseln.o .libs/progname.o .libs/secure_path.o .libs/setgroups.o .libs/strsplit.o .libs/strtobool.o .libs/strtoid.o .libs/strtomode.o .libs/sudo_conf.o .libs/sudo_debug.o .libs/sudo_dso.o .libs/term.o .libs/ttysize.o .libs/event_select.o .libs/reallocarray.o .libs/utimens.o .libs/memrchr.o .libs/pw_dup.o .libs/closefrom.o .libs/strtonum.o .libs/sha2.o .libs/sig2str.o   -L/usr/lib -L/opt/pkg/lib -ldl  -fstack-protector-strong -static-libgcc   -install_name  /opt/pkg/lib/sudo/libsudo_util.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-single_module
> clang: error: unsupported option '-static-libgcc'
> make[1]: *** [] Error 1
> make: *** [all] Error 2
> Looking in the configure script, it seems that it wasn't generated from
> the patched file.  It might very well be a problem arising
> from patching both the file (patch-af) and the configure
> script (patch-ag).  Only patch-ag ever takes effect...
> Andreas

I disabled -static-libgcc flag for Darwin build. It does not make any sense. Please, update your pkgsrc repository and rebuild. :)

Kind regards,

Home | Main Index | Thread Index | Old Index