1
1

Work around Automake not knowing how to properly configure libtool to build

Objective C libraries

Refs trac:483

This commit was SVN r12080.

The following Trac tickets were found above:
  Ticket 483 --> https://svn.open-mpi.org/trac/ompi/ticket/483
Этот коммит содержится в:
Brian Barrett 2006-10-10 20:14:26 +00:00
родитель 699ffcf359
Коммит f5b8f1f2f0
2 изменённых файлов: 27 добавлений и 4 удалений

Просмотреть файл

@ -18,11 +18,22 @@
# Use the top-level Makefile.options
AM_CPPFLAGS = -I$(top_ompi_builddir)/include
AM_OBJCFLAGS = $(pls_xgrid_OBJCFLAGS)
# Automake and Libtool don't completely speak Objective C. Since the
# only Objective C we'll be using is GCC on Mac OS X, we can pretend
# to be C instead of ObjC for libtool and it works well enough. If CC
# and OBJC aren't the same, Libtool doesn't automatically infer that
# we're using C and Automake doesn't add the --tag, so we need to
# explicitly list these two rules so that the --tag=CC line is passed
# to libtool.
LTOBJCCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(OBJC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_OBJCFLAGS) $(OBJCFLAGS)
OBJCLINK = $(LIBTOOL) --mode=link --tag=CC $(OBJCLD) $(AM_OBJCFLAGS) \
$(OBJCFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
xgrid_sources = \
src/pls_xgrid.h \
src/pls_xgrid_component.m \

Просмотреть файл

@ -18,9 +18,21 @@
# Use the top-level Makefile.options
AM_CPPFLAGS = -I$(top_ompi_builddir)/include
AM_OBJCFLAGS = $(ras_xgrid_OBJCFLAGS)
# Automake and Libtool don't completely speak Objective C. Since the
# only Objective C we'll be using is GCC on Mac OS X, we can pretend
# to be C instead of ObjC for libtool and it works well enough. If CC
# and OBJC aren't the same, Libtool doesn't automatically infer that
# we're using C and Automake doesn't add the --tag, so we need to
# explicitly list these two rules so that the --tag=CC line is passed
# to libtool.
LTOBJCCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(OBJC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_OBJCFLAGS) $(OBJCFLAGS)
OBJCLINK = $(LIBTOOL) --mode=link --tag=CC $(OBJCLD) $(AM_OBJCFLAGS) \
$(OBJCFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
xgrid_sources = \
src/ras_xgrid.h \