Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
flycast
Commits
4c7e824f
Commit
4c7e824f
authored
Nov 03, 2018
by
CompCom
Browse files
Fixed flto in classic armv7 make.
parent
95bfad92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
4c7e824f
...
...
@@ -188,7 +188,7 @@ else ifeq ($(platform), classic_armv7_a7)
HAVE_LTCG
=
0
HAVE_OPENMP
=
0
CFLAGS
+=
-Ofast
\
-f
no-
lto
\
-flto
=
4
-fwhole-program
-fuse-linker-plugin
\
-fdata-sections
-ffunction-sections
-Wl
,--gc-sections
\
-fno-stack-protector
-fno-ident
-fomit-frame-pointer
\
-falign-functions
=
1
-falign-jumps
=
1
-falign-loops
=
1
\
...
...
@@ -197,10 +197,13 @@ else ifeq ($(platform), classic_armv7_a7)
-marm
-mtune
=
cortex-a7
-mfpu
=
neon-vfpv4
-mfloat-abi
=
hard
CXXFLAGS
+=
$(CFLAGS)
ASFLAGS
+=
$(CFLAGS)
LDFLAGS
+=
-marm
-mtune
=
cortex-a7
-mfpu
=
neon-vfpv4
-mfloat-abi
=
hard
ifeq
($(shell echo `$(CC) -dumpversion` "< 4.9" | bc -l), 1)
CFLAGS
+=
-march
=
armv7-a
LDFLAGS
+=
-march
=
armv7-a
else
CFLAGS
+=
-march
=
armv7ve
LDFLAGS
+=
-march
=
armv7ve
# If gcc is 5.0 or later
ifeq
($(shell echo `$(CC) -dumpversion` ">= 5" | bc -l), 1)
LDFLAGS
+=
-static-libgcc
-static-libstdc
++
...
...
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