summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2013-03-15 17:38:54 +0100
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-03-16 13:15:32 +0100
commit01e26fc2dc4ad9d70633ef8413870000508fa6b6 (patch)
treeda95842ca91acfca7826a5cc03a0f4b810110100
parent93e2a8af53e06fb7b0e9297eef8d28b4c5aa021a (diff)
ndk-build: force the C compiler to build the gstreamer library
_CC is set to the default compiler, which might be g++ instead of gcc for C++ projects.
-rwxr-xr-xdata/ndk-build/gstreamer.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/ndk-build/gstreamer.mk b/data/ndk-build/gstreamer.mk
index 6e54c43..54fbdfe 100755
--- a/data/ndk-build/gstreamer.mk
+++ b/data/ndk-build/gstreamer.mk
@@ -145,7 +145,7 @@ GSTREAMER_ANDROID_LIBS := $(call fix-deps,-lgiognutls, -lhogweed)
GSTREAMER_ANDROID_CFLAGS := $(call pkg-config-get-includes,$(GSTREAMER_DEPS)) -I$(GSTREAMER_SDK_ROOT)/include
# Create the link command
-GSTREAMER_ANDROID_CMD := $(call libtool-link,$(_CC) $(LDFLAGS) -shared --sysroot=$(SYSROOT) \
+GSTREAMER_ANDROID_CMD := $(call libtool-link,$(TARGET_CC) $(LDFLAGS) -shared --sysroot=$(SYSROOT) \
-o $(GSTREAMER_ANDROID_SO) $(GSTREAMER_ANDROID_O) \
-L$(GSTREAMER_SDK_ROOT)/lib -L$(GSTREAMER_STATIC_PLUGINS_PATH) $(G_IO_MODULES_PATH) \
$(GSTREAMER_ANDROID_LIBS), $(GSTREAMER_LD)) -Wl,-no-undefined $(GSTREAMER_LD)
@@ -165,12 +165,12 @@ genstatic:
# Compile the source file
$(GSTREAMER_ANDROID_O): genstatic
@$(HOST_ECHO) "GStreamer : [COMPILE] => $(GSTREAMER_ANDROID_C)"
- @$(_CC) --sysroot=$(SYSROOT) $(CFLAGS) -c $(GSTREAMER_ANDROID_C) -Wall -Werror -o $(GSTREAMER_ANDROID_O) $(GSTREAMER_ANDROID_CFLAGS)
+ @$(TARGET_CC) --sysroot=$(SYSROOT) $(CFLAGS) -c $(GSTREAMER_ANDROID_C) -Wall -Werror -o $(GSTREAMER_ANDROID_O) $(GSTREAMER_ANDROID_CFLAGS)
# Creates a shared library including gstreamer, its plugins and all the dependencies
buildsharedlibrary: $(GSTREAMER_ANDROID_O)
@$(HOST_ECHO) "GStreamer : [LINK] => $(GSTREAMER_ANDROID_SO)"
- @$(_CC) $(GSTREAMER_ANDROID_CMD)
+ @$(TARGET_CC) $(GSTREAMER_ANDROID_CMD)
copyjavasource:
@$(call host-mkdir,src/com/gstreamer)