Browse Source

Add shared object for openlibm and pthreads-emb

Jeremy Soller 6 years ago
parent
commit
cf800b5282
2 changed files with 7 additions and 1 deletions
  1. 6 0
      Makefile
  2. 1 1
      pthreads-emb

+ 6 - 0
Makefile

@@ -140,6 +140,9 @@ $(BUILD)/openlibm: openlibm
 $(BUILD)/openlibm/libopenlibm.a: $(BUILD)/openlibm $(BUILD)/include
 	$(MAKE) CC=$(CC) CPPFLAGS="-fno-stack-protector -I$(shell pwd)/include -I $(shell pwd)/$(BUILD)/include" -C $< libopenlibm.a
 
+$(BUILD)/openlibm/libopenlibm.so: $(BUILD)/openlibm $(BUILD)/include
+	$(MAKE) CC=$(CC) CPPFLAGS="-fno-stack-protector -I$(shell pwd)/include -I $(shell pwd)/$(BUILD)/include" -C $< libopenlibm.so.2.5
+
 $(BUILD)/pthreads-emb: pthreads-emb
 	rm -rf $@ [email protected]
 	mkdir -p $(BUILD)
@@ -149,3 +152,6 @@ $(BUILD)/pthreads-emb: pthreads-emb
 
 $(BUILD)/pthreads-emb/libpthread.a: $(BUILD)/pthreads-emb $(BUILD)/include
 	$(MAKE) CC=$(CC) CFLAGS="-fno-stack-protector -I$(shell pwd)/include -I $(shell pwd)/$(BUILD)/include" -C $< libpthread.a
+
+$(BUILD)/pthreads-emb/libpthread.so: $(BUILD)/pthreads-emb $(BUILD)/include
+	$(MAKE) CC=$(CC) CFLAGS="-fno-stack-protector -I$(shell pwd)/include -I $(shell pwd)/$(BUILD)/include" -C $< libpthread.so

+ 1 - 1
pthreads-emb

@@ -1 +1 @@
-Subproject commit 0fd936b4d47ea5e32c07d38d2b38789a5b995eef
+Subproject commit 40b2b829bc26583cc091fdca064004cfdebc10c5