Skip to content

Commit f05410f

Browse files
author
niamtokik
committed
Add OpenBSD support with defined CXX variables and others one. This was
tested on OpenBSD-current (amd64) and works.
1 parent a120d59 commit f05410f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/pc_port_env.erl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,16 @@ default_env() ->
303303
lists:concat([" /LIBPATH:$ERL_EI_LIBDIR "] ++
304304
[EiLib++".lib " || EiLib <- ErlInterfaceLibs])},
305305
{"win32", "DRV_CFLAGS", "/Zi /Wall $ERL_CFLAGS"},
306-
{"win32", "DRV_LDFLAGS", "/DLL $ERL_LDFLAGS"}
306+
{"win32", "DRV_LDFLAGS", "/DLL $ERL_LDFLAGS"},
307+
308+
{"openbsd", "CC", "cc"},
309+
{"openbsd", "CXX", "c++"},
310+
{"openbsd", "AR", "ar"},
311+
{"openbsd", "AS", "as"},
312+
{"openbsd", "CPP", "cpp"},
313+
{"openbsd", "LD", "ld"},
314+
{"openbsd", "STRIP", "strip"},
315+
{"openbsd", "NM", "nm"}
307316
].
308317

309318
get_tool(Arch, Tool, Default) ->

0 commit comments

Comments
 (0)