aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2020-08-02 13:52:21 -0500
committerCalvin Rose <calsrose@gmail.com>2020-08-02 13:52:21 -0500
commit8c1eb23aa1e9b2fc00fbf5de4b51c5e7258a509b (patch)
tree63cd740f7b30c02aaf9c89cdb275f13e659e319f
parentAdd index-of to core library. (diff)
Add -fPIC to default cflags when building boot image.
-rw-r--r--CHANGELOG.md3
-rw-r--r--Makefile4
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ed5c83d3..e7eeb7a2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file.
+## Unreleased - ???
+- Add `index-of` to core library.
+
## 1.11.1 - 2020-07-25
- Fix jpm and git with multiple git installs on Windows
- Fix importing a .so file in the current directory
diff --git a/Makefile b/Makefile
index 4432ef97..189af399 100644
--- a/Makefile
+++ b/Makefile
@@ -41,10 +41,10 @@ SONAME_SETTER=-Wl,-soname,
# For cross compilation
HOSTCC?=$(CC)
HOSTAR?=$(AR)
-CFLAGS?=-fPIC -O2
+CFLAGS?=-O2
LDFLAGS?=-rdynamic
-COMMON_CFLAGS:=-std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fvisibility=hidden
+COMMON_CFLAGS:=-std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fvisibility=hidden -fPIC
BOOT_CFLAGS:=-DJANET_BOOTSTRAP -DJANET_BUILD=$(JANET_BUILD) -O0 -g $(COMMON_CFLAGS)
BUILD_CFLAGS:=$(CFLAGS) $(COMMON_CFLAGS)