File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 7575$(eval $(call copy_csl,$(call versioned_libname,libgcc_s_seh,1)))
7676endif
7777else
78- ifeq ($(APPLE_ARCH ) ,arm64)
78+ ifeq ($(OS ) ,Darwin)
79+ # On macOS, libgcc_s has soversion 1.1 always on aarch64 and only for GCC 12+
80+ # (-> libgfortran 5) on x86_64
81+ ifeq ($(ARCH ) ,aarch64)
82+ $(eval $(call copy_csl,$(call versioned_libname,libgcc_s,1.1)))
83+ else
84+ ifeq ($(LIBGFORTRAN_VERSION ) ,5)
7985$(eval $(call copy_csl,$(call versioned_libname,libgcc_s,1.1)))
8086else
8187$(eval $(call copy_csl,$(call versioned_libname,libgcc_s,1)))
8288endif
8389endif
90+ else
91+ # Other targets just use libgcc_s.1
92+ $(eval $(call copy_csl,$(call versioned_libname,libgcc_s,1)))
93+ endif
94+ endif
95+
8496# winpthread is only Windows, pthread is only others
8597ifeq ($(OS ) ,WINNT)
8698$(eval $(call copy_csl,$(call versioned_libname,libwinpthread,1)))
You can’t perform that action at this time.
0 commit comments