@@ -342,10 +342,10 @@ $(FLISP_EXECUTABLE_release): $(BUILDDIR)/flisp/libflisp.a
342342$(FLISP_EXECUTABLE_debug ) : $(BUILDDIR ) /flisp/libflisp-debug.a
343343 $(MAKE ) -C $(BUILDDIR ) /flisp $(subst $(abspath $(BUILDDIR ) /flisp) /,,$(abspath $(FLISP_EXECUTABLE_debug ) ) )
344344
345- $(BUILDDIR ) /flisp/libflisp.a : $(addprefix $(SRCDIR ) /flisp/,* .h * .c) $(BUILDDIR ) /support/libsupport.a
345+ $(BUILDDIR ) /flisp/libflisp.a : $(addprefix $(SRCDIR ) /flisp/,* .h * .c) $(BUILDDIR ) /support/libsupport.a $( BUILDDIR ) /julia.generated.expmap
346346 $(MAKE ) -C $(SRCDIR ) /flisp BUILDDIR=' $(abspath $(BUILDDIR)/flisp)'
347347
348- $(BUILDDIR ) /flisp/libflisp-debug.a : $(addprefix $(SRCDIR ) /,flisp/* .h flisp/* .c) $(BUILDDIR ) /support/libsupport-debug.a
348+ $(BUILDDIR ) /flisp/libflisp-debug.a : $(addprefix $(SRCDIR ) /,flisp/* .h flisp/* .c) $(BUILDDIR ) /support/libsupport-debug.a $( BUILDDIR ) /julia.generated.expmap
349349 $(MAKE ) -C $(SRCDIR ) /flisp debug BUILDDIR=' $(abspath $(BUILDDIR)/flisp)'
350350
351351$(BUILDDIR ) /julia_version.h : $(JULIAHOME ) /VERSION
@@ -363,13 +363,18 @@ $(BUILDDIR)/julia_version.h: $(JULIAHOME)/VERSION
363363
364364CXXLD = $(CXX ) -shared
365365
366- $(build_shlibdir ) /libjulia-internal.$(JL_MAJOR_MINOR_SHLIB_EXT ) : $(SRCDIR ) /julia.expmap $(OBJS ) $(BUILDDIR ) /flisp/libflisp.a $(BUILDDIR ) /support/libsupport.a $(LIBUV )
366+ $(BUILDDIR ) /julia.generated.expmap : $(SRCDIR ) /julia.expmap
367+ @echo " $( DEFAULT_SYMBOL_VERSION) " > $@ .tmp
368+ @cat $(SRCDIR ) /julia.expmap >> $@ .tmp
369+ mv $@ .tmp $@
370+
371+ $(build_shlibdir ) /libjulia-internal.$(JL_MAJOR_MINOR_SHLIB_EXT ) : $(BUILDDIR ) /julia.generated.expmap $(OBJS ) $(BUILDDIR ) /flisp/libflisp.a $(BUILDDIR ) /support/libsupport.a $(LIBUV )
367372 @$(call PRINT_LINK, $(CXXLD ) $(call IMPLIB_FLAGS,$@ ) $(JCXXFLAGS ) $(JL_CXXFLAGS ) $(CXXLDFLAGS ) $(SHIPFLAGS ) $(OBJS ) $(RPATH_LIB ) -o $@ \
368373 $(JLDFLAGS ) $(JLIBLDFLAGS ) $(RT_RELEASE_LIBS ) $(call SONAME_FLAGS,libjulia-internal.$(JL_MAJOR_SHLIB_EXT ) ) )
369374 @$(INSTALL_NAME_CMD ) libjulia-internal.$(SHLIB_EXT ) $@
370375 $(DSYMUTIL ) $@
371376
372- $(build_shlibdir ) /libjulia-internal-debug.$(JL_MAJOR_MINOR_SHLIB_EXT ) : $(SRCDIR ) /julia.expmap $(DOBJS ) $(BUILDDIR ) /flisp/libflisp-debug.a $(BUILDDIR ) /support/libsupport-debug.a $(LIBUV )
377+ $(build_shlibdir ) /libjulia-internal-debug.$(JL_MAJOR_MINOR_SHLIB_EXT ) : $(BUILDDIR ) /julia.generated .expmap $(DOBJS ) $(BUILDDIR ) /flisp/libflisp-debug.a $(BUILDDIR ) /support/libsupport-debug.a $(LIBUV )
373378 @$(call PRINT_LINK, $(CXXLD ) $(call IMPLIB_FLAGS,$@ ) $(JCXXFLAGS ) $(JL_CXXFLAGS ) $(CXXLDFLAGS ) $(DEBUGFLAGS ) $(DOBJS ) $(RPATH_LIB ) -o $@ \
374379 $(JLDFLAGS ) $(JLIBLDFLAGS ) $(RT_DEBUG_LIBS ) $(call SONAME_FLAGS,libjulia-internal-debug.$(JL_MAJOR_SHLIB_EXT ) ) )
375380 @$(INSTALL_NAME_CMD ) libjulia-internal-debug.$(SHLIB_EXT ) $@
@@ -391,13 +396,13 @@ libjulia-internal-release: $(build_shlibdir)/libjulia-internal.$(JL_MAJOR_MINOR_
391396libjulia-internal-debug : $(build_shlibdir ) /libjulia-internal-debug.$(JL_MAJOR_MINOR_SHLIB_EXT )
392397libjulia-internal-debug libjulia-internal-release : $(PUBLIC_HEADER_TARGETS )
393398
394- $(build_shlibdir ) /libjulia-codegen.$(JL_MAJOR_MINOR_SHLIB_EXT ) : $(SRCDIR ) /julia.expmap $(CODEGEN_OBJS ) $(BUILDDIR ) /support/libsupport.a $(build_shlibdir ) /libjulia-internal.$(JL_MAJOR_MINOR_SHLIB_EXT )
399+ $(build_shlibdir ) /libjulia-codegen.$(JL_MAJOR_MINOR_SHLIB_EXT ) : $(BUILDDIR ) /julia.generated .expmap $(CODEGEN_OBJS ) $(BUILDDIR ) /support/libsupport.a $(build_shlibdir ) /libjulia-internal.$(JL_MAJOR_MINOR_SHLIB_EXT )
395400 @$(call PRINT_LINK, $(CXXLD ) $(call IMPLIB_FLAGS,$@ ) $(JCXXFLAGS ) $(JL_CXXFLAGS ) $(CXXLDFLAGS ) $(SHIPFLAGS ) $(CODEGEN_OBJS ) $(RPATH_LIB ) -o $@ \
396401 $(JLDFLAGS ) $(JLIBLDFLAGS ) $(CG_RELEASE_LIBS ) $(call SONAME_FLAGS,libjulia-codegen.$(JL_MAJOR_SHLIB_EXT ) ) )
397402 @$(INSTALL_NAME_CMD ) libjulia-codegen.$(SHLIB_EXT ) $@
398403 $(DSYMUTIL ) $@
399404
400- $(build_shlibdir ) /libjulia-codegen-debug.$(JL_MAJOR_MINOR_SHLIB_EXT ) : $(SRCDIR ) /julia.expmap $(CODEGEN_DOBJS ) $(BUILDDIR ) /support/libsupport-debug.a $(build_shlibdir ) /libjulia-internal-debug.$(JL_MAJOR_MINOR_SHLIB_EXT )
405+ $(build_shlibdir ) /libjulia-codegen-debug.$(JL_MAJOR_MINOR_SHLIB_EXT ) : $(BUILDDIR ) /julia.generated .expmap $(CODEGEN_DOBJS ) $(BUILDDIR ) /support/libsupport-debug.a $(build_shlibdir ) /libjulia-internal-debug.$(JL_MAJOR_MINOR_SHLIB_EXT )
401406 @$(call PRINT_LINK, $(CXXLD ) $(call IMPLIB_FLAGS,$@ ) $(JCXXFLAGS ) $(JL_CXXFLAGS ) $(CXXLDFLAGS ) $(DEBUGFLAGS ) $(CODEGEN_DOBJS ) $(RPATH_LIB ) -o $@ \
402407 $(JLDFLAGS ) $(JLIBLDFLAGS ) $(CG_DEBUG_LIBS ) $(call SONAME_FLAGS,libjulia-codegen-debug.$(JL_MAJOR_SHLIB_EXT ) ) )
403408 @$(INSTALL_NAME_CMD ) libjulia-codegen-debug.$(SHLIB_EXT ) $@
@@ -421,6 +426,7 @@ clean:
421426 -rm -fr $(build_shlibdir ) /libjulia-internal* $(build_shlibdir ) /libjulia-codegen* $(build_shlibdir ) /libccalltest* $(build_shlibdir ) /libllvmcalltest*
422427 -rm -f $(BUILDDIR ) /julia_flisp.boot $(BUILDDIR ) /julia_flisp.boot.inc $(BUILDDIR ) /jl_internal_funcs.inc
423428 -rm -f $(BUILDDIR ) /* .dbg.obj $(BUILDDIR ) /* .o $(BUILDDIR ) /* .dwo $(BUILDDIR ) /* .$(SHLIB_EXT ) $(BUILDDIR ) /* .a $(BUILDDIR ) /* .h.gen
429+ -rm -f $(BUILDDIR ) /julia.generated.expmap
424430 -rm -f $(BUILDDIR ) /julia_version.h
425431
426432clean-flisp :
0 commit comments