File tree Expand file tree Collapse file tree
examples/test_abort_buffer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# =======================================================================
44include ../make.inc
55
6+ UNAME = $(shell uname)
7+
68PY_MOD = pywrapper
79WRAPFLAGS = -v
810F2PY = f2py-f90wrap
@@ -13,10 +15,9 @@ F90WRAP_OBJ = $(F90WRAP_SRC:.f90=.o)
1315SRC_LIB = src
1416F90WRAP_LIB = f90wrap
1517ifeq ($(UNAME ) ,Darwin)
16- LDFLAGS := -bundle -undefined dynamic_lookup -lgfortran
17- else
18- LDFLAGS := -shared -lgfortran
18+ LDFLAGS = -Wl,-undefined,dynamic_lookup
1919endif
20+
2021.PHONY : all clean
2122
2223all : test
@@ -51,8 +52,8 @@ f90wrap_%.o: f90wrap_%.f90
5152lib${SRC_LIB}.so : ${OBJ}
5253 ${F90} ${F90FLAGS} -shared -o lib${SRC_LIB} .so ${OBJ} ${LDFLAGS}
5354
54- lib${F90WRAP_LIB}.so : ${F90WRAP_OBJ}
55- ${F90} ${F90FLAGS} -shared -o lib${F90WRAP_LIB} .so ${F90WRAP_OBJ} ${LDFLAGS}
55+ lib${F90WRAP_LIB}.so : ${F90WRAP_OBJ} lib${SRC_LIB}.so
56+ ${F90} ${F90FLAGS} -shared -o lib${F90WRAP_LIB} .so ${F90WRAP_OBJ} -L. -l ${SRC_LIB} ${LDFLAGS}
5657
5758test : f2py_main_A f2py_main_B
5859 LD_LIBRARY_PATH=. ${PYTHON} tests.py
You can’t perform that action at this time.
0 commit comments