mirror of
https://github.com/janet-lang/janet
synced 2025-11-15 06:47:17 +00:00
Add -fPIC to default cflags when building boot image.
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All notable changes to this project will be documented in this file.
|
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
|
## 1.11.1 - 2020-07-25
|
||||||
- Fix jpm and git with multiple git installs on Windows
|
- Fix jpm and git with multiple git installs on Windows
|
||||||
- Fix importing a .so file in the current directory
|
- Fix importing a .so file in the current directory
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -41,10 +41,10 @@ SONAME_SETTER=-Wl,-soname,
|
|||||||
# For cross compilation
|
# For cross compilation
|
||||||
HOSTCC?=$(CC)
|
HOSTCC?=$(CC)
|
||||||
HOSTAR?=$(AR)
|
HOSTAR?=$(AR)
|
||||||
CFLAGS?=-fPIC -O2
|
CFLAGS?=-O2
|
||||||
LDFLAGS?=-rdynamic
|
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)
|
BOOT_CFLAGS:=-DJANET_BOOTSTRAP -DJANET_BUILD=$(JANET_BUILD) -O0 -g $(COMMON_CFLAGS)
|
||||||
BUILD_CFLAGS:=$(CFLAGS) $(COMMON_CFLAGS)
|
BUILD_CFLAGS:=$(CFLAGS) $(COMMON_CFLAGS)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user