Changeset 1156
- Timestamp:
- 14/01/09 16:43:38 (3 years ago)
- Location:
- branches/4.2
- Files:
-
- 2 edited
-
bindings/idl/Makefile.am (modified) (1 diff)
-
configure.ac (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/bindings/idl/Makefile.am
r1140 r1156 39 39 libNeXusIDL_API_la_SOURCES = NeXusIDL-API.c handle.c handle.h 40 40 libNeXusIDL_API_la_LIBADD = $(top_builddir)/src/libNeXus.la 41 libNeXusIDL_API_la_LDFLAGS = @SHARED_LDFLAGS@ -Wl,--no-undefined -L$(IDLROOT)/bin/ bin.linux.$(IDLARCH) -lidl $(LDFLAGS)41 libNeXusIDL_API_la_LDFLAGS = @SHARED_LDFLAGS@ -Wl,--no-undefined -L$(IDLROOT)/bin/$(IDL_HOST) -lidl $(LDFLAGS) 42 42 43 43 AM_CPPFLAGS = -I$(IDLROOT)/external/include 44 45 install-exec-hook : 46 ( cd $(DESTDIR)$(libdir); ln -s libNeXusIDL-API.so NeXusIDL-API.so ) 47 48 NeXusIDL-API.so : libNeXusIDL-API.la 49 ln -sf .libs/libNeXusIDL-API.so $@ 50 51 CLEANFILES = NeXusIDL-API.so 44 52 45 53 EXTRA_DIST = \ -
branches/4.2/configure.ac
r1144 r1156 60 60 AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug],[Turn off optimisation]), [enable_debug=$enableval],[enable_debug=no]) 61 61 62 AC_ARG_ENABLE([32bit], AC_HELP_STRING([--enable-32bit],[build 32bit binary on 64 bit computer]), [enable_32bit=$enableval],[enable_32bit=no]) 63 62 64 dnl Checks for programs. 63 65 AC_ARG_WITH([cc], AC_HELP_STRING([--with-cc=c compiler], [Specify name of C compiler]), … … 183 185 AM_CONDITIONAL(HAVE_IDL, [test "$IDLROOT" != ""]) 184 186 185 dnl Work out the architecture for IDL186 if test -n "IDLROOT" ; then187 AS_CASE([$build_cpu], [x86|i386|i686], [IDLARCH=x86], [IDLARCH=$build_cpu])188 AC_SUBST(IDLARCH)189 fi190 187 191 188 AC_ARG_WITH([doxygen], AC_HELP_STRING([--with-doxygen=/path/to/doxygen], [Specify path to doxygen]), [with_doxygen=$withval], [with_doxygen=no]) … … 290 287 AM_CONDITIONAL(HAVE_MS_LIB, [test ! -z "$MS_LIB"]) 291 288 289 # strict aliasing causes issues with casts from NXmalloc() 290 CFLAGS="-fno-strict-aliasing" 291 CXXFLAGS="-fno-strict-aliasing" 292 292 293 # check for debug 293 294 if test "$enable_debug" = "yes"; then 294 CFLAGS="-O0 -g" 295 CXXFLAGS="-O0 -g" 295 CFLAGS="$CFLAGS -O0 -g" 296 CXXFLAGS="$CXXFLAGS -O0 -g" 297 fi 298 299 if test "$enable_32bit" = "yes"; then 300 CFLAGS="$CFLAGS -m32" 301 CXXFLAGS="$CXXFLAGS -m32" 296 302 fi 297 303 … … 337 343 AC_SUBST(LIBXML2_CFLAGS) 338 344 LIBXML2_CFLAGS='`xml2-config --cflags`' 345 346 # set up for linux here - mac is covered in the case $host statement 347 if test $enable_32bit = yes; then 348 IDL_HOST="bin.linux.x86" # force 32 bit on a 64 bit machine 349 else 350 IDL_HOST="bin.linux.$build_cpu" 351 fi 352 AC_SUBST(IDL_HOST) 339 353 340 354 case $host in … … 389 403 dnl archive_cmds='$CC -dynamiclib -single_module' 390 404 dnl fi 405 if test $enable_32bit = yes; then 406 IDL_HOST="bin.darwin.i386" # force 32bit build 407 else 408 IDL_HOST="bin.darwin.i386" 409 fi 391 410 ;; 392 411 esac
Note: See TracChangeset
for help on using the changeset viewer.
