-
-
Save pronebird/1b66745ac00773e88b16508522ff8d81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index d6d87cb..9e1e852 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -35,6 +35,8 @@ THIRDPARTS=$(THIRDPARTDIR)/yaml \ | |
$(THIRDPARTDIR)/lwip \ | |
$(THIRDPARTDIR)/hev-task-system | |
+$(STATIC_TARGET) : CCFLAGS+=-fPIC | |
+ | |
$(SHARED_TARGET) : CCFLAGS+=-fPIC | |
$(SHARED_TARGET) : LDFLAGS+=-shared -pthread | |
Submodule third-part/hev-task-system contains modified content | |
diff --git a/third-part/hev-task-system/Makefile b/third-part/hev-task-system/Makefile | |
index cd68a9c..0192b60 100644 | |
--- a/third-part/hev-task-system/Makefile | |
+++ b/third-part/hev-task-system/Makefile | |
@@ -22,6 +22,8 @@ BUILDDIR=build | |
STATIC_TARGET=$(BINDIR)/lib$(PROJECT).a | |
SHARED_TARGET=$(BINDIR)/lib$(PROJECT).so | |
+$(STATIC_TARGET) : CCFLAGS+=-fPIC | |
+ | |
$(SHARED_TARGET) : CCFLAGS+=-fPIC -fvisibility=hidden | |
$(SHARED_TARGET) : LDFLAGS+=-shared -pthread | |
Submodule third-part/lwip contains modified content | |
diff --git a/third-part/lwip/Makefile b/third-part/lwip/Makefile | |
index 412b96a..2d9ae09 100644 | |
--- a/third-part/lwip/Makefile | |
+++ b/third-part/lwip/Makefile | |
@@ -17,6 +17,8 @@ BUILDDIR=build | |
STATIC_TARGET=$(BINDIR)/lib$(PROJECT).a | |
SHARED_TARGET=$(BINDIR)/lib$(PROJECT).so | |
+$(STATIC_TARGET) : CCFLAGS+=-fPIC | |
+ | |
$(SHARED_TARGET) : CCFLAGS+=-fPIC | |
$(SHARED_TARGET) : LDFLAGS+=-shared -pthread | |
Submodule third-part/yaml contains modified content | |
diff --git a/third-part/yaml/Makefile b/third-part/yaml/Makefile | |
index f789f2c..d01db2f 100644 | |
--- a/third-part/yaml/Makefile | |
+++ b/third-part/yaml/Makefile | |
@@ -17,6 +17,8 @@ BUILDDIR=build | |
STATIC_TARGET=$(BINDIR)/lib$(PROJECT).a | |
SHARED_TARGET=$(BINDIR)/lib$(PROJECT).so | |
+$(STATIC_TARGET) : CCFLAGS+=-fPIC | |
+ | |
$(SHARED_TARGET) : CCFLAGS+=-fPIC | |
$(SHARED_TARGET) : LDFLAGS+=-shared | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment