On 11/01/2016 04:23 PM, william.c.roberts@xxxxxxxxx wrote: > From: William Roberts <william.c.roberts@xxxxxxxxx> > > As reported by Nicolas Iooss, the clang + linux build seems > broken: > > clang-3.9: warning: argument unused during compilation: '-undefined > dynamic_lookup' > /usr/bin/ld: unrecognised option: -install_name > clang-3.9: error: linker command failed with exit code 1 (use -v to > see invocation) > > We already have those options set for Darwin, just drop them from the > clang side. Thanks, applied. > > Signed-off-by: William Roberts <william.c.roberts@xxxxxxxxx> > --- > libselinux/src/Makefile | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile > index ae40f80..b92fe1c 100644 > --- a/libselinux/src/Makefile > +++ b/libselinux/src/Makefile > @@ -73,13 +73,12 @@ override CFLAGS += -fipa-pure-const -Wlogical-op -Wpacked-bitfield-compat -Wsync > -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -Wp,-D_FORTIFY_SOURCE=2 > else > override CFLAGS += -Wunused-command-line-argument > -override LDFLAGS += -L/opt/local/lib -undefined dynamic_lookup > -LD_SONAME_FLAGS=-install_name,$(LIBSO) > endif > > ifeq ($(OS), Darwin) > override CFLAGS += -I/opt/local/include > override LDFLAGS += -L/opt/local/lib -undefined dynamic_lookup > +LD_SONAME_FLAGS=-install_name,$(LIBSO) > endif > > PCRE_LDFLAGS ?= -lpcre > _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.