1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 11:40:38 +00:00

Merge pull request #144 from mkilgore/fix-no-pie

Use -no-pie on Linux
This commit is contained in:
Matt Kilgore 2022-08-27 10:40:38 -04:00 committed by GitHub
commit ee611aa72a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,10 @@ ifeq ($(OS),lnx)
PLATFORM := posix
EXTENSION :=
# Compiling with -no-pie lets some file explorers know we're an executable,
# not a shared object
CXXFLAGS += -no-pie
# Check bitness by getting length of `long
# 64 bits on x86_64, 32 bits on x86
BITS := $(shell getconf LONG_BIT)