From f05410f9bf56ceeffe96a79a0f9c4a4085d377d5 Mon Sep 17 00:00:00 2001 From: niamtokik Date: Fri, 29 May 2020 13:38:05 +0000 Subject: [PATCH] Add OpenBSD support with defined CXX variables and others one. This was tested on OpenBSD-current (amd64) and works. --- src/pc_port_env.erl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pc_port_env.erl b/src/pc_port_env.erl index 91d716b..f75c8f8 100644 --- a/src/pc_port_env.erl +++ b/src/pc_port_env.erl @@ -303,7 +303,16 @@ default_env() -> lists:concat([" /LIBPATH:$ERL_EI_LIBDIR "] ++ [EiLib++".lib " || EiLib <- ErlInterfaceLibs])}, {"win32", "DRV_CFLAGS", "/Zi /Wall $ERL_CFLAGS"}, - {"win32", "DRV_LDFLAGS", "/DLL $ERL_LDFLAGS"} + {"win32", "DRV_LDFLAGS", "/DLL $ERL_LDFLAGS"}, + + {"openbsd", "CC", "cc"}, + {"openbsd", "CXX", "c++"}, + {"openbsd", "AR", "ar"}, + {"openbsd", "AS", "as"}, + {"openbsd", "CPP", "cpp"}, + {"openbsd", "LD", "ld"}, + {"openbsd", "STRIP", "strip"}, + {"openbsd", "NM", "nm"} ]. get_tool(Arch, Tool, Default) ->