Changeset 18646

Show
Ignore:
Timestamp:
04/14/06 14:57:49 (3 years ago)
Author:
patrick
Message:

Introduce a new macro, VJ_LINKER_SETUP, that is used for setting up
common liker features that we want to use. Currently, this handles the
use of the linker option -soname, which is used to embed the name of the
shared library into the file so that the run-time loader knows what to
look for. This will come in handy with RPMs that split up the runtime
and the development environments.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/macros/vrj-helpers.m4

    r18342 r18646  
    301301]) 
    302302 
     303AC_DEFUN([VJ_LINKER_SETUP], 
     304[ 
     305   AC_REQUIRE([DPP_SYSTEM_SETUP]) 
     306 
     307   DPP_PROG_LINKER 
     308 
     309   HAVE_LD_SONAME='N' 
     310   LD_SONAME_FLAG='' 
     311   CC_SONAME_FLAG='' 
     312 
     313   if test "x$PLATFORM" = "xIRIX" ; then 
     314      HAVE_LD_SONAME='Y' 
     315      LD_SONAME_FLAG='-soname' 
     316      CC_SONAME_FLAG="-Wl,$LD_SONAME_FLAG," 
     317   elif test "x$GNU_LD" = "xyes" -a "x$PLATFORM" != "xDarwin" ; then 
     318      HAVE_LD_SONAME='Y' 
     319      LD_SONAME_FLAG='-soname' 
     320      CC_SONAME_FLAG="-Wl,$LD_SONAME_FLAG," 
     321   fi 
     322 
     323   AC_SUBST(HAVE_LD_SONAME) 
     324   AC_SUBST(LD_SONAME_FLAG) 
     325   AC_SUBST(CC_SONAME_FLAG) 
     326]) 
     327 
    303328dnl --------------------------------------------------------------------------- 
    304329dnl This defines a handy little macro that will remove all duplicate strings