summaryrefslogtreecommitdiff
path: root/libitm/Makefile.am
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-12 22:44:25 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-12 22:44:25 +0000
commit71557f40388d63f90772e131647e3945acae850a (patch)
treeabfdf21b9b9e181b7c87659d760cf46b5478d42c /libitm/Makefile.am
parentf0f80a6fb019976c280ff8587fbc7ba36a51625f (diff)
downloadgcc-71557f40388d63f90772e131647e3945acae850a.tar.gz
Merge branch 'libitm-cpp'
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/transactional-memory@154130 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm/Makefile.am')
-rw-r--r--libitm/Makefile.am23
1 files changed, 16 insertions, 7 deletions
diff --git a/libitm/Makefile.am b/libitm/Makefile.am
index 8a9ae5c5a2e..5dbefb01fcd 100644
--- a/libitm/Makefile.am
+++ b/libitm/Makefile.am
@@ -16,6 +16,7 @@ vpath % $(strip $(search_path))
AM_CPPFLAGS = $(addprefix -I, $(search_path))
AM_CFLAGS = $(XCFLAGS)
+AM_CXXFLAGS = -std=gnu++0x -fno-rtti $(XCFLAGS)
AM_CCASFLAGS = $(XCFLAGS)
AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS)
@@ -28,17 +29,25 @@ else
libitm_version_script =
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_LINK = $(LINK)
libitm_la_LDFLAGS = $(libitm_version_info) $(libitm_version_script) \
-no-undefined
libitm_la_SOURCES = \
- aatree.c alloc.c alloc_c.c alloc_cpp.c barrier.c beginend.c \
- clone.c copymask.c eh_cpp.c local.c memcpy.c memset.c page.c \
- query.c retry.c rwlock.c serial.c useraction.c sjlj.S futex.c \
- method-readonly.c method-wbetl.c
+ aatree.cc alloc.cc alloc_c.cc alloc_cpp.cc barrier.cc beginend.cc \
+ clone.cc cacheline.cc cachepage.cc eh_cpp.cc local.cc memcpy.cc \
+ memset.cc query.cc retry.cc rwlock.cc serial.cc useraction.cc util.cc \
+ sjlj.S method-readonly.cc method-wbetl.cc
if ARCH_X86
-libitm_la_SOURCES += x86_sse.c x86_avx.c
-x86_sse.lo : AM_CFLAGS += -msse
-x86_avx.lo : AM_CFLAGS += -mavx
+libitm_la_SOURCES += x86_sse.cc x86_avx.cc
+x86_sse.lo : XCFLAGS += -msse
+x86_avx.lo : XCFLAGS += -mavx
+endif
+
+if ARCH_FUTEX
+libitm_la_SOURCES += futex.cc
endif