Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/hal/Submakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
HALLIBSRCS := hal/hal_lib.c hal/hal_lib_query.c hal/hal_lib_extra.c $(ULAPISRCS)
$(call TOOBJSDEPS, $(HALLIBSRCS)): EXTRAFLAGS += -fPIC $(ULAPI_CFLAGS)
USERSRCS += $(HALLIBSRCS)
HALLIB_LIBS :=
ifeq ($(BUILD_SYS),uspace)
HALLIB_LIBS := -pthread -lrt
else
HALLIB_LIBS := -lrt
HALLIB_LIBS += -pthread
endif

# Darwin supplies the timing functions through libSystem.
ifeq ($(filter darwin% macos%,$(HOST_OS)),)
HALLIB_LIBS += -lrt
endif

HALLIB := ../lib/liblinuxcnchal.so
Expand Down