1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add the support of the compiler flag "-pthread"

This commit is contained in:
Stefan Lankes 2015-08-10 12:32:04 +02:00
parent 123c3e8387
commit 90178d2bb4
2 changed files with 6 additions and 2 deletions

View file

@ -60,9 +60,13 @@ jacobi: jacobi.o
$Q$(OBJCOPY_FOR_TARGET) $(STRIP_DEBUG) $@
$Qchmod a-x $@.sym
thr_hello.o: thr_hello.c
@echo [CC] $@
$Q$(CC_FOR_TARGET) -c $(CFLAGS) -pthread -o $@ $<
thr_hello: thr_hello.o
@echo [LD] $@
$Q$(CC_FOR_TARGET) $(LDFLAGS) $(CFLAGS) -o $@ $< -lpthread
$Q$(CC_FOR_TARGET) $(LDFLAGS) $(CFLAGS) -o $@ $< -pthread
$Q$(OBJCOPY_FOR_TARGET) $(KEEP_DEBUG) $@ $@.sym
$Q$(OBJCOPY_FOR_TARGET) $(STRIP_DEBUG) $@
$Qchmod a-x $@.sym

@ -1 +1 @@
Subproject commit 563abbc0731039ed7661fdeba1c408554710c624
Subproject commit 83f826227fbf614d01c296584fa72bda9db7d5de