Tk Library Source Code

View Ticket
Login
Ticket UUID: 609750
Title: Makefile.in should support --libdir
Type: Bug Version: None
Submitter: das Created on: 2002-09-16 03:36:47
Subsystem: None Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-02-22 19:01:43
Resolution: Out of Date Closed By: das
    Closed on: 2003-02-22 12:01:43
Description:
tcllib (and TEA in general) should support the --libdir 
configure option to set its $(pkglibdir), it currently hardcodes 
this to $(prefix)/lib , which breaks on Mac OS X where libdir is 
completely unrelated to prefix.

The following patch fixes this and shouldn't break anything 
on other platforms since the default for $(libdir) is precisely 
$(prefix)/lib :

Index: Makefile.in
===============================================
====================
RCS file: /cvsroot/tcllib/tcllib/Makefile.in,v
retrieving revision 1.79
diff -u -r1.79 Makefile.in
--- Makefile.in 19 Aug 2002 18:28:05 -0000      1.79
+++ Makefile.in 16 Sep 2002 03:20:26 -0000
@@ -177,7 +177,7 @@
 
 DESTDIR =
 
-pkglibdir = $(prefix)/lib/@PACKAGE@@VERSION@
+pkglibdir = $(libdir)/@PACKAGE@@VERSION@
 
 top_builddir = .
User Comments: das added on 2003-02-22 19:01:43:
Logged In: YES 
user_id=90580

this is old and has been fixed long ago...

das added on 2002-09-16 10:59:11:
Logged In: YES 
user_id=90580

same problem in tklib:

Index: Makefile.in
==================================================
=================
RCS file: /cvsroot/tcllib/tklib/Makefile.in,v
retrieving revision 1.2
diff -u -r1.2 Makefile.in
--- Makefile.in 26 Feb 2002 08:04:26 -0000      1.2
+++ Makefile.in 16 Sep 2002 03:45:26 -0000
@@ -44,7 +44,7 @@
 
 DESTDIR                =
 
-pkglibdir      = $(prefix)/lib/@PACKAGE@@VERSION@
+pkglibdir      = $(libdir)/@PACKAGE@@VERSION@
 
 top_builddir   = .