[FUG-BR] Nao consigo compilar

Otacílio otacilio.neto em bsd.com.br
Quinta Novembro 1 20:19:22 BRST 2012


On 01/11/2012 19:05, Cleiton Alves wrote:
> grato
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
> 

diff -u -r --from-file=merces-pev-8a0bc0e merces-pev-8a0bc0e/Makefile
merces-pev-8a0bc0e.new/Makefile
--- merces-pev-8a0bc0e/Makefile	2012-10-31 08:55:47.000000000 -0300
+++ merces-pev-8a0bc0e.new/Makefile	2012-11-01 19:03:56.000000000 -0300
@@ -1,6 +1,6 @@
 LIBPE_DIR = lib/libpe
 PEV_DIR = src
-MAKE = make
+MAKE = gmake
 VERSION = 0.60
 ZIPFILE = pev-$(VERSION)-win32.zip

diff -u -r --from-file=merces-pev-8a0bc0e
merces-pev-8a0bc0e/lib/libpe/Makefile
merces-pev-8a0bc0e.new/lib/libpe/Makefile
--- merces-pev-8a0bc0e/lib/libpe/Makefile	2012-10-31 08:55:47.000000000
-0300
+++ merces-pev-8a0bc0e.new/lib/libpe/Makefile	2012-11-01
19:05:18.000000000 -0300
@@ -28,7 +28,7 @@

 all: pe.c pe.h
 	$(CC) -o $(LIBNAME).o $(CFLAGS) $(SRC)
-ifeq ($(PLATFORM_OS), Linux)
+ifeq ($(PLATFORM_OS), FreeBSD)
 	$(CC) -shared -Wl,-soname,$(LIBNAME).so.1 -o $(LIBNAME).so $(LIBNAME).o
 else ifeq ($(PLATFORM_OS), Darwin)
 	$(CC) -headerpad_max_install_names -dynamiclib \
@@ -41,7 +41,7 @@

 install:
 	test -d $(DEST) || mkdir -p $(DEST)
-ifeq ($(PLATFORM_OS), Linux)
+ifeq ($(PLATFORM_OS), FreeBSD)
 	$(STRIP) $(LIBNAME).so
 	$(INSTALL) $(LIBNAME).so $(DEST)/$(LIBNAME).so.$(VERSION)
 	cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so
diff -u -r --from-file=merces-pev-8a0bc0e
merces-pev-8a0bc0e/src/Makefile merces-pev-8a0bc0e.new/src/Makefile
--- merces-pev-8a0bc0e/src/Makefile	2012-10-31 08:55:47.000000000 -0300
+++ merces-pev-8a0bc0e.new/src/Makefile	2012-11-01 19:06:52.000000000 -0300
@@ -7,6 +7,7 @@

 PREFIX = /usr
 DEST = $(DESTDIR)/$(PREFIX)/bin
+LDFLAGS += -L/usr/local/lib
 LIBPE = ../lib/libpe
 LIBUDIS86 = ../lib/libudis86
 override LDFLAGS += -L$(LIBPE) -lpe
@@ -30,7 +31,7 @@
 all: $(PROGS)

 pestr: CPPFLAGS += -D_GNU_SOURCE=1
-pestr: LDFLAGS += -lpcre
+pestr: LDFLAGS += -lpcre -I/usr/local/include
 pestr: pestr.c

 pehash: LDFLAGS += -lssl -lcrypto


Mais detalhes sobre a lista de discussão freebsd