--- tools/openmp/runtime/src/makefile.mk.orig 2015-07-09 18:16:58 UTC +++ tools/openmp/runtime/src/makefile.mk @@ -366,12 +366,16 @@ ifeq "$(os)" "lin" ld-flags-dll += -static-libgcc # omp_os is non-empty only in the open-source code ifneq "$(omp_os)" "freebsd" - ld-flags-extra += -Wl,-ldl + ifneq "$(omp_os)" "bsdsunix" + ld-flags-extra += -Wl,-ldl + endif endif endif ifeq "$(c)" "clang" ifneq "$(omp_os)" "freebsd" - ld-flags-extra += -Wl,-ldl + ifneq "$(omp_os)" "bsdsunix" + ld-flags-extra += -Wl,-ldl + endif endif endif ifeq "$(arch)" "32" @@ -1506,6 +1510,13 @@ ifneq "$(filter %-dyna win-%,$(os)-$(LIN endif endif + ifeq "$(omp_os)" "bsdsunix" + td_exp = + td_exp += libc.so.7 + td_exp += libthr.so.3 + td_exp += libunwind.so.5 + endif + ifeq "$(omp_os)" "freebsd" td_exp = td_exp += libc.so.7