From 8c1eb23aa1e9b2fc00fbf5de4b51c5e7258a509b Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 2 Aug 2020 13:52:21 -0500 Subject: [PATCH] Add -fPIC to default cflags when building boot image. --- CHANGELOG.md | 3 +++ Makefile | 4 ++-- 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)