Skip to content

Fixes for building on OpenBSD#176

Merged
ararslan merged 3 commits intomasterfrom
aa/openbsd
Apr 7, 2018
Merged

Fixes for building on OpenBSD#176
ararslan merged 3 commits intomasterfrom
aa/openbsd

Conversation

@ararslan
Copy link
Copy Markdown
Member

@ararslan ararslan commented Apr 5, 2018

No description provided.

@ararslan ararslan requested a review from staticfloat April 6, 2018 06:31
Comment thread Makefile Outdated
CP_A := cp -RpP
else
CP_A := cp -a
endif
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually think cp -RpP will work everywhere; so we can probably just use that.

ararslan added 3 commits April 6, 2018 14:04
This is the default compiler starting with OpenBSD 6.2, and has been
installed by default on OpenBSD since 6.0.
OpenBSD does not support cp -a, and cp -RpP should work on all
platforms.
In particular, OpenBSD already defines __GNUC_PREREQ__, __BEGIN_DECLS,
and __warn_references. Hiding the definitions behind #ifndef guards
avoids warnings when building.
@ararslan
Copy link
Copy Markdown
Member Author

ararslan commented Apr 6, 2018

I've separated this out into three distinct commits:

  1. Use Clang on OpenBSD
  2. Use cp -RpP everywhere, as suggested
  3. Hide a bunch of stuff behind #ifndefs to avoid Clang warnings on OpenBSD

Note though that there are still a bunch of "attribute declaration must precede definition" warnings from the OLM_DLLEXPORT macro on OpenBSD, but I'm not sure how to address that.

@ararslan ararslan merged commit a844d58 into master Apr 7, 2018
@ararslan ararslan deleted the aa/openbsd branch April 7, 2018 17:25
mato added a commit to mato/ocaml-freestanding that referenced this pull request May 2, 2018
This is to get JuliaMath/openlibm#176, needed for OpenBSD changes in

(was Merge commit 'f5a5c314d86e9d103f89bfa6fc7862b40a039570' into update-openlibm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants