Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: wpm at morgan dot com (Phillip Moore)
Subject: Changing parameters such as LDDLFLAGS via MakeMaker for Sybperl
Date: Mar 15 1996 2:59AM

>>>>> "Phil" == Phillip Moore  writes:

Phil> When I build perl5.002 on Solaris 2.4, I tell it to use
Phil> /ms/dist/fsf/include and /ms/dist/fsf/lib to pick up libgdbm, in order
Phil> to build GDBM_File.  OK, no problem...

Phil> Now, when I build Sybperl 2.04, causes the Makefile
Phil> constructed by Makemaker to include the following lines:

Phil> LDDLFLAGS = -G -L/ms/dist/syb/lib -L/ms/dist/aurora/lib -L/ms/dist/fsf/lib
Phil> LDFLAGS = -L/ms/dist/syb/lib -L/ms/dist/aurora/lib -L/ms/dist/fsf/lib

Phil> This is a problem for me, since libtcl.a (of tcl/tk fame)
Phil> happens to live in /ms/dist/fsf/lib, and Sybperl doesn't like
Phil> this (Sybase has its own libtcl which I have to link against).

Phil> Solution seems straight forward.  The directory containing the
Phil> Sybase libraries ($SYBASE/lib) just needs to be added to the
Phil> list of -L flags.  Should be easy to add this via the
Phil> Makefile.PL command line....

In the event that anyone actually read what I wrote closely, there is
an important error.  The LDDLFLAGS and LDFLAGS lines written by
MakeMaker are:

LDDLFLAGS = -G -L/ms/dist/aurora/lib -L/ms/dist/fsf/lib
LDFLAGS = -L/ms/dist/aurora/lib -L/ms/dist/fsf/lib

What I am trying to do is get them re-written to what I wrote above

LDDLFLAGS = -G -L/ms/dist/syb/lib -L/ms/dist/aurora/lib -L/ms/dist/fsf/lib
LDFLAGS = -L/ms/dist/syb/lib -L/ms/dist/aurora/lib -L/ms/dist/fsf/lib