pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: boost-libs on macOS Ventura (13.x)



On Tue, 23 May 2023 16:20:17 +0200
Tobias Nygren <tnn%NetBSD.org@localhost> wrote:

> It is not that easy to patch since you have to hook into the boost-jam stuff.

Actually it turned out pretty easy since we can leverage the fact that
the last -std=... provided takes precendence. Please test this:

$NetBSD$

--- tools/build/src/tools/clang-darwin.jam.orig	2023-04-10 13:47:41.000000000 +0000
+++ tools/build/src/tools/clang-darwin.jam
@@ -116,7 +116,7 @@ rule compile.c++ ( targets * : sources *

 actions compile.c bind PCH_FILE
 {
-    "$(CONFIG_COMMAND)" -x c $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" $(.include-pch)"$(PCH_FILE)" -c -o "$(<)" "$(>)"
+    "$(CONFIG_COMMAND)" -x c $(OPTIONS) $(USER_OPTIONS) -std=c99 -D$(DEFINES) -I"$(INCLUDES)" $(.include-pch)"$(PCH_FILE)" -c -o "$(<)" "$(>)"
 }

 actions compile.c++ bind PCH_FILE


Home | Main Index | Thread Index | Old Index