diff options
| author | Ray San <[email protected]> | 2017-10-16 13:37:10 +0200 |
|---|---|---|
| committer | Ray San <[email protected]> | 2017-10-16 13:37:10 +0200 |
| commit | a6ccc14d390c0289474e923c6cc2ed8efde0e1de (patch) | |
| tree | 93dbf3634fa0beaafaa0c30f7840cf0cafbbf0cf | |
| parent | 63507d5f8145e49a38b49e6c985e333b9353bdb5 (diff) | |
| download | raylib-a6ccc14d390c0289474e923c6cc2ed8efde0e1de.tar.gz raylib-a6ccc14d390c0289474e923c6cc2ed8efde0e1de.zip | |
Corrected issue with OpenAL Soft static
| -rw-r--r-- | src/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 95b739c2..3a903cb6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -237,6 +237,11 @@ ifeq ($(RAYLIB_LIBTYPE),SHARED) CFLAGS += -fPIC -DBUILD_LIBTYPE_SHARED endif +# Define required compilation flags for OpenAL Soft STATIC lib +ifeq ($(OPENAL_LIBTYPE),STATIC) + ALFLAGS = -DAL_LIBTYPE_STATIC -Wl,-allow-multiple-definition +endif + # Define include paths for required headers # NOTE: Several external required libraries (stb and others) INCLUDE_PATHS = -I. -Iexternal -Iexternal/include @@ -263,7 +268,7 @@ ifeq ($(PLATFORM),PLATFORM_ANDROID) # Force linking of library module to define symbol LDFLAGS += -u ANativeActivity_onCreate # Library paths containing required libs - LDFLAGS += -L. -Lsrc -L$(RAYLIB_RELEASE_PATH) -Lexternal/openal_soft/lib/android + LDFLAGS += -L. -Lsrc -L$(RAYLIB_RELEASE_PATH) LDLIBS = -lopenal -llog -landroid -lEGL -lGLESv2 -lOpenSLES -latomic -lc -lm endif |
