Opened 10 years ago

Closed 9 years ago

#848 closed defect (fixed)

non-cross chickens don't take PROGRAM_PREFIX and PROGRAM_SUFFIX into account when referencing libchicken

Reported by: Mario Domenech Goulart Owned by:
Priority: major Milestone: 4.9.0
Component: build system Version: 4.7.x
Keywords: PROGRAM_PREFIX, PROGRAM_SUFFIX, libchicken Cc:
Estimated difficulty:

Description (last modified by Mario Domenech Goulart)

In non-cross chickens, csc will attempt to use the name libchicken, even if PROGRAM_PREFIX or PROGRAM_SUFFIX has been set. This is because:

(define default-shared-library-files
  (list (string-append "-l" (if host-mode INSTALL_LIB_NAME TARGET_LIB_NAME))))

in csc.scm. defaults.make sets the variables in question like

INSTALL_LIB_NAME = $(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
TARGET_LIB_NAME ?= chicken

See the thread http://lists.nongnu.org/archive/html/chicken-hackers/2012-05/msg00020.html for further details.

Change History (2)

comment:1 Changed 10 years ago by Mario Domenech Goulart

Description: modified (diff)

comment:2 Changed 9 years ago by Mario Domenech Goulart

Resolution: fixed
Status: newclosed

Fixed by 5fe91ae31df87b46cda0d91ec8bb4892353596ac

Note: See TracTickets for help on using tickets.