Skip to content

FreeBSD build support#102

Merged
mato merged 4 commits intoSolo5:masterfrom
mato:freebsd
Oct 18, 2016
Merged

FreeBSD build support#102
mato merged 4 commits intoSolo5:masterfrom
mato:freebsd

Conversation

@mato
Copy link
Copy Markdown
Member

@mato mato commented Oct 14, 2016

  • Introduce a Makeconf/configure.sh combo invoked automatically by 'make'.
  • Default for 'make' is to only build targets applicable to the build OS.
  • "Compiler-provided" headers are now copied in configure.sh to include-host/
    for in-tree builds, and installed by OPAM to $(OPAM_INCDIR)/include/host.
  • Only Linux/gcc and FreeVSD/clang are supported.

- Introduce a Makeconf/configure.sh combo invoked automatically by 'make'.
- Default for 'make' is to only build targets applicable to the build OS.
- "Compiler-provided" headers are now copied in configure.sh to include-host/
  for in-tree builds, and installed by OPAM to $(OPAM_INCDIR)/include/host.
- Only Linux/gcc and FreeVSD/clang are supported.
configure.sh Outdated
INCDIR=/usr/include
SRCS_MACH="machine/_stdint.h machine/_types.h machine/endian.h \
machine/_limits.h"
SRCS_SYS="sys/_null.h sys/_stdint.h sys/_types.h sys/cdefs.h"
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.

nocrypto (or zarith or gmp or whatever other dependency) also needs sys/endian.h (sorry that my blog article is out of date)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

thx. will check those, only tested building console so far...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

nolibc provides a sys/endian.h, and gmp seems to build fine with that provided I add the CC=cc change

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok, it turns out nocrypto needs a sys/endian.h on FreeBSD, added

@hannesm
Copy link
Copy Markdown
Contributor

hannesm commented Oct 14, 2016

Thanks for doing this work (and sorry that I've been too lazy to do it myself)

@mato mato mentioned this pull request Oct 14, 2016
17 tasks
@hannesm
Copy link
Copy Markdown
Contributor

hannesm commented Oct 17, 2016

I confirm that this works on my -CURRENT system!

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