diff options
author | px4dev <px4@purgatory.org> | 2013-01-06 12:52:05 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-01-06 12:52:05 -0800 |
commit | 4447282260be0780eb6e36f5e953bf56888a5688 (patch) | |
tree | 3ba1e976d998d433397343b79a0612af52075aef /apps/mk/app.mk | |
parent | 659543f852d18197f68fafee5db5671567b74f4b (diff) | |
download | px4-firmware-4447282260be0780eb6e36f5e953bf56888a5688.tar.gz px4-firmware-4447282260be0780eb6e36f5e953bf56888a5688.tar.bz2 px4-firmware-4447282260be0780eb6e36f5e953bf56888a5688.zip |
Integrate the interesting parts of the CMSIS 3.01 (r3p1) DSP library
Diffstat (limited to 'apps/mk/app.mk')
-rw-r--r-- | apps/mk/app.mk | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/mk/app.mk b/apps/mk/app.mk index 3948ef354..6c2fff900 100644 --- a/apps/mk/app.mk +++ b/apps/mk/app.mk @@ -69,7 +69,7 @@ # CONFIG_PTHREAD_STACK_DEFAULT) # # Symbols in the module are private to the module unless deliberately exported -# using the __EXPORT tag. +# using the __EXPORT tag, or DEFAULT_VISIBILITY is set # ############################################################################ @@ -125,8 +125,15 @@ endif ############################################################################ # Adjust compilation flags to implement EXPORT # -CFLAGS += -fvisibility=hidden -include $(APPDIR)/systemlib/visibility.h -CXXFLAGS += -fvisibility=hidden -include $(APPDIR)/systemlib/visibility.h + +ifeq ($(DEFAULT_VISIBILITY),) +DEFAULT_VISIBILITY = hidden +else +DEFAULT_VISIBILITY = default +endif + +CFLAGS += -fvisibility=$(DEFAULT_VISIBILITY) -include $(APPDIR)/systemlib/visibility.h +CXXFLAGS += -fvisibility=$(DEFAULT_VISIBILITY) -include $(APPDIR)/systemlib/visibility.h ############################################################################ # Add extra include directories |