[cfe-dev] clang patches for OpenBSD

Chris Lattner clattner at apple.com
Mon Feb 21 10:43:40 PST 2011


On Feb 18, 2011, at 10:56 AM, Amit Kulkarni wrote:

> Chris and Anton,
> 
> I am sorry that I sent out a bad Makefile.rules patch without thinking
> about the other OS. I tested the Makefile.rules and confirmed that
> this below patch worked on OpenBSD, and should work on others. I
> verified twice with a clean rm -rf bindir.
> http://www.openbsd.org/cgi-bin/cvsweb/ports/devel/llvm/patches/patch-Makefile_rules
> doesn't work at all.
> 
> Index: Makefile.rules
> ===================================================================
> --- Makefile.rules      (revision 125944)
> +++ Makefile.rules      (working copy)
> @@ -971,7 +971,9 @@
>        $(Verb) echo "{" > $@
>        $(Verb) grep -q "\<" $< && echo "  global:" >> $@ || :
>        $(Verb) sed -e 's/$$/;/' -e 's/^/    /' < $< >> $@
> +ifneq ($(HOST_OS),OpenBSD)
>        $(Verb) echo "  local: *;" >> $@
> +endif
>        $(Verb) echo "};" >> $@
> clean-local::
>        -$(Verb) $(RM) -f $(NativeExportsFile)

Applied in r126135, thanks!  Please let me know if there are any other openbsd patches outstanding, I think they're all in now.

-Chris



More information about the cfe-dev mailing list