From 919dc5dd4229ca58bd3434f987e4a8dbd0c084bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 1 Mar 2019 15:19:22 +0100 Subject: [PATCH] Add information about NetBSD 6 compilation on i386 (cherry picked from commit 9a16e0a5ae88455a9b9ecc24e8308277798f4c8a) --- PLATFORMS.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/PLATFORMS.md b/PLATFORMS.md index af75b73819..543135a4e3 100644 --- a/PLATFORMS.md +++ b/PLATFORMS.md @@ -95,8 +95,18 @@ armhf documentation): the processors to support here, therefore the recommended build option is `-mfpu=vfpv3-d16`. -The configure command should look like this: +The `configure` command should look like this: ``` CFLAGS="-march=armv7-a -mfpu=vfpv3-d16 -Os -g" ./configure ``` + +### NetBSD 6 i386 + +The i386 build of NetBSD requires the `libatomic` library, available from +the `gcc5-libs` package. Because this library is in a non-standard path, +its location must be specified in the `configure` command line: + +``` +LDFLAGS="-L/usr/pkg/gcc5/i486--netbsdelf/lib/ -Wl,-R/usr/pkg/gcc5/i486--netbsdelf/lib/" ./configure +```