Skip to content

Commit

Permalink
Use the new flags for static openmp.
Browse files Browse the repository at this point in the history
Test: ./checkbuild.py && ./run_tests.py
Bug: android/ndk#1028
Change-Id: Ie927be61a23c3780488312bac17f7e533dc101a6
  • Loading branch information
DanAlbert committed Sep 16, 2019
1 parent 09ec0e6 commit 0b5ae9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/device/openmp/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ include $(CLEAR_VARS)
LOCAL_MODULE := openmp
LOCAL_SRC_FILES := openmp.c
LOCAL_CFLAGS += -fopenmp
LOCAL_LDFLAGS += -Wl,-Bstatic -lomp -Wl,-Bdynamic
LOCAL_LDFLAGS += -static-openmp -fopenmp
include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
LOCAL_MODULE := openmp2
LOCAL_SRC_FILES := openmp2.c
LOCAL_CFLAGS += -fopenmp
LOCAL_LDFLAGS += -Wl,-Bstatic -lomp -Wl,-Bdynamic
LOCAL_LDFLAGS += -static-openmp -fopenmp
include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
LOCAL_MODULE := fib
LOCAL_SRC_FILES := fib.c
LOCAL_CFLAGS += -fopenmp
LOCAL_LDFLAGS += -Wl,-Bstatic -lomp -Wl,-Bdynamic
LOCAL_LDFLAGS += -static-openmp -fopenmp
include $(BUILD_EXECUTABLE)

0 comments on commit 0b5ae9b

Please sign in to comment.