Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
purr-data
Commits
9d550696
Commit
9d550696
authored
Aug 26, 2019
by
Albert Gräf
Browse files
add -fno-strict-aliasing where it's needed to get rid of gcc warnings about type-punned pointers
parent
2b12535e
Changes
4
Hide whitespace changes
Inline
Side-by-side
externals/Makefile
View file @
9d550696
...
...
@@ -374,7 +374,7 @@ boids_clean:
#------------------------------------------------------------------------------#
# BSAYLOR
bsaylor
:
make
-C
$(externals_src)
/bsaylor
PD_PATH
=
$(pd_src)
CFLAGS
=
"
$(CFLAGS)
"
make
-C
$(externals_src)
/bsaylor
PD_PATH
=
$(pd_src)
CFLAGS
=
"
$(CFLAGS)
-fno-strict-aliasing
"
bsaylor_install
:
make
-C
$(externals_src)
/bsaylor
\
...
...
@@ -1300,7 +1300,7 @@ moocow_clean:
#------------------------------------------------------------------------------#
# MOONLIB
moonlib
:
make
-C
$(externals_src)
/moonlib
PD_PATH
=
$(pd_src)
CFLAGS
=
"
$(CFLAGS)
"
make
-C
$(externals_src)
/moonlib
PD_PATH
=
$(pd_src)
CFLAGS
=
"
$(CFLAGS)
-fno-strict-aliasing
"
moonlib_install
:
make
-C
$(externals_src)
/moonlib
DESTDIR
=
"
$(DESTDIR)
"
objectsdir
=
"
$(objectsdir)
"
install
...
...
externals/OSCx/configure.ac
View file @
9d550696
...
...
@@ -78,7 +78,7 @@ if test -z "$GCC"; then
else
case $host in
*86*-linux*)
CFLAGS="$CFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 -fPIC"
CFLAGS="$CFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2
-fno-strict-aliasing
-fPIC"
LDFLAGS="-Wl,--export-dynamic -shared"
dnl we could test for bad glibc here, but don't
pd_suffix=pd_linux
...
...
@@ -115,7 +115,7 @@ else
LIBS="-L../../../pd/src -L../../../pd/bin -L../../../pd/obj -lpd -lm -lwsock32"
;;
*-*-darwin*)
CFLAGS="$CFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O3 "
CFLAGS="$CFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O3
-fno-strict-aliasing
"
LDFLAGS=" -bundle -bundle_loader ../../../pd/bin/pd-l2ork -flat_namespace "
pd_suffix=pd_darwin
LIBS="-lc -lm"
...
...
externals/bsaylor/Makefile
View file @
9d550696
...
...
@@ -84,7 +84,7 @@ ifeq ($(UNAME),Darwin)
CXX
=
$(IPHONE_BASE)
/g++
ISYSROOT
=
-isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk
IPHONE_CFLAGS
=
-miphoneos-version-min
=
3.0
$(ISYSROOT)
-arch
armv6
OPT_CFLAGS
=
-fast
-funroll-loops
-fomit-frame-pointer
OPT_CFLAGS
=
-fast
-funroll-loops
-fomit-frame-pointer
-fno-strict-aliasing
CFLAGS
:=
$(IPHONE_CFLAGS)
$(OPT_CFLAGS)
$(CFLAGS)
LDFLAGS
+=
-arch
armv6
-bundle
-undefined
dynamic_lookup
$(ISYSROOT)
LIBS
+=
-lc
...
...
@@ -120,7 +120,7 @@ ifeq ($(UNAME),Linux)
EXTENSION
=
pd_linux
OS
=
linux
PD_PATH
=
/usr
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
-fno-strict-aliasing
CFLAGS
+=
-fPIC
LDFLAGS
+=
-Wl
,--export-dynamic
-shared
-fPIC
LIBS
+=
-lc
...
...
@@ -133,7 +133,7 @@ ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME)))
EXTENSION
=
dll
OS
=
cygwin
PD_PATH
=
$
(
cygpath
$(PROGRAMFILES)
)
/pd
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
-fno-strict-aliasing
CFLAGS
+=
LDFLAGS
+=
-Wl
,--export-dynamic
-shared
-L
"
$(PD_PATH)
/src"
-L
"
$(PD_PATH)
/bin"
LIBS
+=
-lc
-lpd
...
...
@@ -146,7 +146,7 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
EXTENSION
=
dll
OS
=
windows
PD_PATH
=
$(
shell
cd
"
$(PROGRAMFILES)
"
/pd
&&
pwd
)
OPT_CFLAGS
=
-O3
-funroll-loops
-fomit-frame-pointer
OPT_CFLAGS
=
-O3
-funroll-loops
-fomit-frame-pointer
-fno-strict-aliasing
CFLAGS
+=
-mms-bitfields
LDFLAGS
+=
-s
-shared
-Wl
,--enable-auto-import
LIBS
+=
-L
"
$(PD_PATH)
/src"
-L
"
$(PD_PATH)
/bin"
-L
"
$(PD_PATH)
/obj"
-lpd
-lwsock32
-lkernel32
-luser32
-lgdi32
...
...
externals/moonlib/Makefile
View file @
9d550696
...
...
@@ -143,7 +143,7 @@ ifeq ($(UNAME),ANDROID)
NDK_UNAME
:=
$(
shell
uname
-s
|
tr
'[A-Z]'
'[a-z]'
)
NDK_TOOLCHAIN_BASE
=
$(NDK_BASE)
/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
$(NDK_UNAME)
-x86
CC
:=
$(NDK_TOOLCHAIN_BASE)
/bin/arm-linux-androideabi-gcc
--sysroot
=
$(NDK_SYSROOT)
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
-fno-strict-aliasing
CFLAGS
+=
LDFLAGS
+=
-rdynamic
-shared
SHARED_LDFLAGS
+=
-Wl
,-soname,
$(SHARED_LIB)
-shared
...
...
@@ -159,7 +159,7 @@ ifeq ($(UNAME),Linux)
SHARED_EXTENSION
=
so
OS
=
linux
PD_PATH
=
/usr
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
-fno-strict-aliasing
ALL_CFLAGS
+=
-fPIC
ALL_LDFLAGS
+=
-rdynamic
-shared
-fPIC
SHARED_LDFLAGS
+=
-Wl
,-soname,
$(SHARED_LIB)
-shared
...
...
@@ -175,7 +175,7 @@ ifeq ($(UNAME),GNU)
SHARED_EXTENSION
=
so
OS
=
linux
PD_PATH
=
/usr
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
-fno-strict-aliasing
ALL_CFLAGS
+=
-fPIC
ALL_LDFLAGS
+=
-rdynamic
-shared
-fPIC
SHARED_LDFLAGS
+=
-shared
-Wl
,-soname,
$(SHARED_LIB)
...
...
@@ -191,7 +191,7 @@ ifeq ($(UNAME),GNU/kFreeBSD)
SHARED_EXTENSION
=
so
OS
=
linux
PD_PATH
=
/usr
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
-fno-strict-aliasing
ALL_CFLAGS
+=
-fPIC
ALL_LDFLAGS
+=
-rdynamic
-shared
-fPIC
SHARED_LDFLAGS
+=
-shared
-Wl
,-soname,
$(SHARED_LIB)
...
...
@@ -206,7 +206,7 @@ ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME)))
SHARED_EXTENSION
=
dll
OS
=
cygwin
PD_PATH
=
$(
shell
cygpath
$$
PROGRAMFILES
)
/pd
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
OPT_CFLAGS
=
-O6
-funroll-loops
-fomit-frame-pointer
-fno-strict-aliasing
ALL_CFLAGS
+=
ALL_LDFLAGS
+=
-rdynamic
-shared
-L
"
$(PD_PATH)
/src"
-L
"
$(PD_PATH)
/bin"
SHARED_LDFLAGS
+=
-shared
-Wl
,-soname,
$(SHARED_LIB)
...
...
@@ -223,7 +223,7 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
PD_PATH
=
$(
shell
cd
"
$$
PROGRAMFILES/pd"
&&
pwd
)
# MinGW doesn't seem to include cc so force gcc
CC
=
gcc
OPT_CFLAGS
=
-O3
-funroll-loops
-fomit-frame-pointer
OPT_CFLAGS
=
-O3
-funroll-loops
-fomit-frame-pointer
-fno-strict-aliasing
ALL_CFLAGS
+=
-mms-bitfields
ALL_LDFLAGS
+=
-s
-shared
-Wl
,--enable-auto-import
-L
"
$(PD_PATH)
/src"
-L
"
$(PD_PATH)
/bin"
-L
"
$(PD_PATH)
/obj"
SHARED_LDFLAGS
+=
-shared
...
...
Albert Gräf
@aggraef
mentioned in issue
#548
·
Aug 27, 2019
mentioned in issue
#548
mentioned in issue #548
Toggle commit list
Write
Preview
Supports
Markdown
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