mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
35b05a02de
The recent move of libgfortran object files to subdirs and the resulting breakage of libgfortran.so symbol exports demonstrated how fragile deriving object and archive names from their libtool counterparts in the Makefiles is. Therefore, this patch moves that step into make_sunver.pl, considerably simplifying the Makefile rules to create the version scripts. Bootstrapped without regressions on i386-pc-solaris2.11 and sparc-sun-solaris2.11, verifying that the version scripts are identical except for the input filenames. 2024-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> contrib: * make_sunver.pl: Use File::Basename; Skip -lLIB args. Convert libtool object/archive names to underlying objects/archives. libatomic: * Makefile.am [LIBAT_BUILD_VERSIONED_SHLIB_SUN] (libatomic.map-sun): Pass $(libatomic_la_OBJECTS), $(libatomic_la_LIBADD) to make_sunver.pl unmodified. * Makefile.in: Regenerate. libffi: * Makefile.am [LIBFFI_BUILD_VERSIONED_SHLIB_SUN] (libffi.map-sun): Pass $(libffi_la_OBJECTS), $(libffi_la_LIBADD) to make_sunver.pl unmodified. * Makefile.in: Regenerate. libgfortran: * Makefile.am [LIBGFOR_USE_SYMVER_SUN} (gfortran.ver-sun): Pass $(libgfortran_la_OBJECTS), $(libgfortran_la_LIBADD) to make_sunver.pl unmodified. * Makefile.in: Regenerate. libgomp: * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN] (libgomp.ver-sun): Pass $(libgomp_la_OBJECTS), $(libgomp_la_LIBADD) to make_sunver.pl unmodified. * Makefile.in: Regenerate. libitm: * Makefile.am [LIBITM_BUILD_VERSIONED_SHLIB_SUN] (libitm.map-sun): Pass $(libitm_la_OBJECTS), $(libitm_la_LIBADD) to make_sunver.pl unmodified. * Makefile.in: Regenerate. libquadmath: * Makefile.am [LIBQUAD_USE_SYMVER_SUN] (quadmath.map-sun): Pass $(libquadmath_la_OBJECTS), $(libquadmath_la_LIBADD) to make_sunver.pl unmodified. * Makefile.in: Regenerate. libssp: * Makefile.am [LIBSSP_USE_SYMVER_SUN] (ssp.map-sun): Pass $(libssp_la_OBJECTS), $(libssp_la_LIBADD) to make_sunver.pl unmodified. * Makefile.in: Regenerate. libstdc++-v3: * src/Makefile.am [ENABLE_SYMVERS_SUN] (libstdc++-symbols.ver-sun): Pass $(libstdc___la_OBJECTS), $(libstdc___la_LIBADD) to make_sunver.pl unmodified. * src/Makefile.in: Regenerate.
128 lines
3.7 KiB
Makefile
128 lines
3.7 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
AUTOMAKE_OPTIONS = info-in-builddir
|
|
ACLOCAL_AMFLAGS = -I .. -I ../config
|
|
SUBDIRS = testsuite
|
|
|
|
## May be used by toolexeclibdir.
|
|
gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
|
|
|
|
abi_version = -fabi-version=4
|
|
|
|
config_path = @config_path@
|
|
search_path = $(addprefix $(top_srcdir)/config/, $(config_path)) $(top_srcdir)
|
|
|
|
libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
|
|
|
|
vpath % $(strip $(search_path))
|
|
|
|
AM_CPPFLAGS = $(addprefix -I, $(search_path))
|
|
AM_CFLAGS = $(XCFLAGS)
|
|
AM_CXXFLAGS = $(XCFLAGS) -std=gnu++0x -funwind-tables -fno-exceptions \
|
|
-fno-rtti $(abi_version)
|
|
AM_CCASFLAGS = $(XCFLAGS)
|
|
AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS) $(HWCAP_LDFLAGS)
|
|
|
|
toolexeclib_LTLIBRARIES = libitm.la
|
|
nodist_toolexeclib_HEADERS = libitm.spec
|
|
|
|
if LIBITM_BUILD_VERSIONED_SHLIB
|
|
if LIBITM_BUILD_VERSIONED_SHLIB_GNU
|
|
libitm_version_script = -Wl,--version-script,$(top_srcdir)/libitm.map
|
|
libitm_version_dep = $(top_srcdir)/libitm.map
|
|
endif
|
|
if LIBITM_BUILD_VERSIONED_SHLIB_SUN
|
|
libitm_version_script = -Wl,-M,libitm.map-sun
|
|
libitm_version_dep = libitm.map-sun
|
|
libitm.map-sun : $(top_srcdir)/libitm.map \
|
|
$(top_srcdir)/../contrib/make_sunver.pl \
|
|
$(libitm_la_OBJECTS) $(libitm_la_LIBADD)
|
|
perl $(top_srcdir)/../contrib/make_sunver.pl \
|
|
$(top_srcdir)/libitm.map \
|
|
$(libitm_la_OBJECTS) $(libitm_la_LIBADD) \
|
|
> $@ || (rm -f $@ ; exit 1)
|
|
endif
|
|
else
|
|
libitm_version_script =
|
|
libitm_version_dep =
|
|
endif
|
|
libitm_version_info = -version-info $(libtool_VERSION)
|
|
|
|
# Force link with C, not C++. For now, while we're using C++ we don't
|
|
# want or need libstdc++.
|
|
libitm_la_DEPENDENCIES = $(libitm_version_dep)
|
|
libitm_la_LINK = $(LINK) $(libitm_la_LDFLAGS)
|
|
if ENABLE_DARWIN_AT_RPATH
|
|
libitm_darwin_rpath = -Wc,-nodefaultrpaths
|
|
libitm_darwin_rpath += -Wl,-rpath,@loader_path
|
|
endif
|
|
libitm_la_LDFLAGS = $(libitm_version_info) $(libitm_version_script) \
|
|
$(libitm_darwin_rpath)
|
|
|
|
libitm_la_SOURCES = \
|
|
aatree.cc alloc.cc alloc_c.cc alloc_cpp.cc barrier.cc beginend.cc \
|
|
clone.cc eh_cpp.cc local.cc \
|
|
query.cc retry.cc rwlock.cc useraction.cc util.cc \
|
|
sjlj.S tls.cc method-serial.cc method-gl.cc method-ml.cc
|
|
|
|
if ARCH_ARM
|
|
libitm_la_SOURCES += hwcap.cc
|
|
endif
|
|
if ARCH_X86
|
|
libitm_la_SOURCES += x86_sse.cc x86_avx.cc
|
|
# Make sure -msse is appended at the end.
|
|
x86_sse.lo : override CXXFLAGS += -msse
|
|
endif
|
|
if ARCH_X86_AVX
|
|
# Make sure -mavx is appended at the end.
|
|
x86_avx.lo : override CXXFLAGS += -mavx
|
|
endif
|
|
|
|
if ARCH_FUTEX
|
|
libitm_la_SOURCES += futex.cc
|
|
endif
|
|
|
|
# Automake Documentation:
|
|
# If your package has Texinfo files in many directories, you can use the
|
|
# variable TEXINFO_TEX to tell Automake where to find the canonical
|
|
# `texinfo.tex' for your package. The value of this variable should be
|
|
# the relative path from the current `Makefile.am' to `texinfo.tex'.
|
|
TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
|
|
|
|
# Defines info, dvi, pdf and html targets
|
|
MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
|
|
info_TEXINFOS = libitm.texi
|
|
|
|
# AM_CONDITIONAL on configure option --generated-files-in-srcdir
|
|
if GENINSRC
|
|
STAMP_GENINSRC = stamp-geninsrc
|
|
else
|
|
STAMP_GENINSRC =
|
|
endif
|
|
|
|
# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
|
|
if BUILD_INFO
|
|
STAMP_BUILD_INFO = stamp-build-info
|
|
else
|
|
STAMP_BUILD_INFO =
|
|
endif
|
|
|
|
|
|
all-local: $(STAMP_GENINSRC)
|
|
|
|
stamp-geninsrc: libitm.info
|
|
cp -p $(top_builddir)/libitm.info $(srcdir)/libitm.info
|
|
@touch $@
|
|
|
|
libitm.info: $(STAMP_BUILD_INFO)
|
|
|
|
stamp-build-info: libitm.texi
|
|
$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libitm.info $(srcdir)/libitm.texi
|
|
@touch $@
|
|
|
|
|
|
CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO)
|
|
MAINTAINERCLEANFILES = $(srcdir)/libitm.info
|
|
|
|
include $(top_srcdir)/../multilib.am
|