Date: Tue, 22 Jan 2002 23:15:46 -0500 (EST) From: Steve Wills <steve@stevenwills.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/34191: palm/malsync files to build Message-ID: <200201230415.g0N4Fk458606@stevenwills.com>
next in thread | raw e-mail | index | archive | help
>Number: 34191 >Category: ports >Synopsis: palm/malsync files to build >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Jan 22 20:20:03 PST 2002 >Closed-Date: >Last-Modified: >Originator: Steve Wills >Release: FreeBSD 4.4-RELEASE i386 >Organization: >Environment: System: FreeBSD tigger.example.com 4.4-RELEASE FreeBSD 4.4-RELEASE #1: Mon Oct 8 17:21:08 EDT 2001 steve@tigger.example.com:/home/obj/home/src/sys/TIGGER i386 >Description: the port failed to build for me, unable to find includes from the pilot-link port >How-To-Repeat: attempt to build the palm/malsync port >Fix: replace the current patch to the make file with this one: --- Makefile.orig Sun May 14 21:17:35 2000 +++ Makefile Tue Jan 22 23:13:58 2002 @@ -1,4 +1,3 @@ -CC = gcc TARGET = malsync PLAT := $(shell uname) @@ -12,10 +11,16 @@ endif TREETOP = ../../.. -PILOT_LINK_DIR = $(TREETOP)/vendor/pilot/pilot-link.0.9.3 +PILOT_LINK_DIR = $(PREFIX)/pilot + +DEFINES = -DMALSYNC -CFLAGS = -Wall -g -DMALSYNC -I$(TREETOP)/mal/common \ - -I$(TREETOP)/mal/client/common -I$(PILOT_LINK_DIR)/include -I. +ifeq ($(PLAT),FreeBSD) +LINKFLAGS = -Wl,--rpath -Wl,$(PILOT_LINK_DIR)/lib +endif + +CFLAGS += $(DEFINES) -I$(TREETOP)/mal/common \ + -I$(TREETOP)/mal/client/common -I$(PREFIX)/include -I. SRC = malsync.c MAL31ServerConfig.c MAL31DBConfig.c MAL31UserConfig.c \ @@ -55,17 +60,12 @@ OBJS = $(SRC:.c=.o) +all: $(TARGET) $(TARGET): $(OBJS) - $(CC) -rdynamic $(CFLAGS) -o $@ $(OBJS) \ - -L${PILOT_LINK_DIR}/libsock -lpisock $(LINKLIBS) + $(CC) $(CFLAGS) -o $@ $(OBJS) \ + -L${PREFIX}/lib -lpisock $(LINKLIBS) $(LINKFLAGS) + clean: rm -f $(OBJS) $(TARGET) - -.c.o: - gcc $(CFLAGS) -c -o $@ $< - - - - >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201230415.g0N4Fk458606>