Procházet zdrojové kódy

[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 před 4 dny
rodič
revize
6bdebd2380
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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