Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
smol
Commits
5c38b05c
Commit
5c38b05c
authored
May 03, 2020
by
PoroCYon
Committed by
PoroCYon
Jul 11, 2020
Browse files
update CFLAGS etc a bit
parent
4389c2e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
5c38b05c
...
...
@@ -14,7 +14,8 @@ BITS ?= $(shell getconf LONG_BIT)
COPTFLAGS
=
-Os
-fno-plt
-fno-stack-protector
-fno-stack-check
-fno-unwind-tables
\
-fno-asynchronous-unwind-tables
-fomit-frame-pointer
-ffast-math
-no-pie
\
-fno-pic
-fno-PIE
-m64
-march
=
core2
-ffunction-sections
-fdata-sections
-fno-plt
-fno-pic
-fno-PIE
-ffunction-sections
-fdata-sections
-fno-plt
\
-fmerge-all-constants
-mno-fancy-math-387
-mno-ieee-fp
CXXOPTFLAGS
=
$(COPTFLAGS)
-fno-exceptions
\
-fno-rtti
-fno-enforce-eh-specs
-fnothrow-opt
-fno-use-cxa-get-exception-ptr
\
-fno-implicit-templates
-fno-threadsafe-statics
-fno-use-cxa-atexit
...
...
@@ -25,10 +26,15 @@ CXXFLAGS=-Wall -Wextra -Wpedantic -std=c++11 $(CXXOPTFLAGS) -nostartfiles -fno-P
ASFLAGS
=
-I
$(SRCDIR)
/
LDFLAGS_
:=
ifeq
($(BITS),32)
# I think prescott is basically nocona but 32-bit only, althought I'm not sure
# if this one is optimal
CFLAGS
+=
-m32
-march
=
prescott
LDFLAGS
+=
-m32
ASFLAGS
+=
-f
elf32
LDFLAGS_
:=
-m32
else
# I've heard nocona gets slightly smaller binaries than core2
CFLAGS
+=
-m64
-march
=
nocona
LDFLAGS
+=
-m64
ASFLAGS
+=
-f
elf64
LDFLAGS_
:=
-m64
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment