diff --git a/recipes/ghostx/build.sh b/recipes/ghostx/build.sh index 9d2dcef4371c9..9027e882edf0c 100644 --- a/recipes/ghostx/build.sh +++ b/recipes/ghostx/build.sh @@ -4,7 +4,7 @@ set -xe cd ./src/ -CC="${CC}" CXX="${CXX}" CC_FLAGS="${CFLAGS} -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR" make -j"${CPU_COUNT}" +CC="${CC}" CXX="${CXX}" CC_FLAGS="${CFLAGS}" make -j"${CPU_COUNT}" mkdir -p $PREFIX/bin install -m 755 ghostx $PREFIX/bin diff --git a/recipes/ghostx/ghostx-makefile.patch b/recipes/ghostx/ghostx-makefile.patch index a75d7310358c5..459c6f410a457 100644 --- a/recipes/ghostx/ghostx-makefile.patch +++ b/recipes/ghostx/ghostx-makefile.patch @@ -1,5 +1,5 @@ diff --git i/src/Makefile w/src/Makefile -index 8844e0a..93e4701 100644 +index 8844e0a..3248657 100644 --- i/src/Makefile +++ w/src/Makefile @@ -1,9 +1,9 @@ @@ -15,16 +15,21 @@ index 8844e0a..93e4701 100644 LDLIBS =-lm -fopenmp ifeq ($(PROFILE), Yes) -@@ -69,7 +69,7 @@ OBJS += $(CPP_SRC:%.cpp=%.o) +@@ -69,18 +69,18 @@ OBJS += $(CPP_SRC:%.cpp=%.o) all:ghostx ghostx: $(OBJS) - $(LAST_CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) -+ $(CXX) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) ++ $(CXX) -std=c++14 -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) .c.o: $(CC) -c $(CC_FLAGS) $< -o $@ $(INCLUDES) -@@ -81,6 +81,6 @@ ghostx: $(OBJS) + + .cpp.o: +- $(CXX) -c $(CC_FLAGS) $< -o $@ $(INCLUDES) ++ $(CXX) -std=c++14 -c $(CC_FLAGS) $< -o $@ $(INCLUDES) + + .PHONY: clean clean: