浏览代码

[haxelib] Add -luv in Makefile only for uv.hdll (#829)

If we are not include uv.hdll in the program, then we don't need to link
with -luv.
tobil4sk 4 天之前
父节点
当前提交
6bdebd2380
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      other/haxelib/templates/make/Makefile

+ 2 - 2
other/haxelib/templates/make/Makefile

@@ -3,9 +3,9 @@
 UNAME := $(shell uname)
 CFLAGS=-O3 -std=c11 -DHL_MAKE -I$$makePath(::relDir::)
 ifeq ($(UNAME),Darwin)
-LDLIBS=-lhl -lm -luv::foreach libraries:: /usr/local/lib/::name::.hdll::end::
+LDLIBS=-lhl -lm::foreach libraries::::if (name == "uv"):: -luv::end:: /usr/local/lib/::name::.hdll::end::
 else
-LDLIBS=-lhl -lm -luv::foreach libraries:: -l:::name::.hdll::end::
+LDLIBS=-lhl -lm::foreach libraries::::if (name == "uv"):: -luv::end:: -l:::name::.hdll::end::
 endif
 
 ifdef HASHLINK