[FUG-BR] Nao consigo compilar

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


On 01/11/2012 18:51, Cleiton Alves wrote:
> opa , entao otacilio essa parte aqui achei >> ifeq ($(PLATFORM_OS),
> Linux) , mais aonde eu modifico a variavel MAKE ?
> 
> 
> ###### Platform specifics
> 
> # cut is necessary for Cygwin
> PLATFORM_OS := $(shell uname | cut -d_ -f1)
> 
> ####### Compiler, tools and options
> 
> PREFIX = /usr
> DEST = $(DESTDIR)/$(PREFIX)/lib
> VERSION = 1.0
> override CFLAGS += -W -Wall -Wextra -pedantic -std=c99 -c
> ifneq ($(PLATFORM_OS), CYGWIN)
>         override CFLAGS += -fPIC
> endif
> SRC = pe.c
> RM = rm -f
> CC = gcc
> SYMLINK = ln -sf
> ifeq ($(PLATFORM_OS), Darwin)
>         STRIP = strip -x
> else
>         STRIP = strip --strip-unneeded
> endif
> LIBNAME = libpe
> INSTALL = install -m 0644
> 
> ####### Build rules
> 
> all: pe.c pe.h
>         $(CC) -o $(LIBNAME).o $(CFLAGS) $(SRC)
> ifeq ($(PLATFORM_OS), Linux)
>         $(CC) -shared -Wl,-soname,$(LIBNAME).so.1 -o $(LIBNAME).so $(LIBNAME).o
> else ifeq ($(PLATFORM_OS), Darwin)
>         $(CC) -headerpad_max_install_names -dynamiclib \
>                 -flat_namespace -install_name $(LIBNAME).$(VERSION).dylib \
>                 -current_version $(VERSION) -compatibility_version $(VERSION) \
>                 -o $(LIBNAME).dylib $(LIBNAME).o
> else ifeq ($(PLATFORM_OS), CYGWIN)
>         $(CC) -shared -o $(LIBNAME).dll $(LIBNAME).o
> endif
> 
> install:
>         test -d $(DEST) || mkdir -p $(DEST)
> ifeq ($(PLATFORM_OS), Linux)
>         $(STRIP) $(LIBNAME).so
>         $(INSTALL) $(LIBNAME).so $(DEST)/$(LIBNAME).so.$(VERSION)
>         cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so
>         cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so.1
> else ifeq ($(PLATFORM_OS), Darwin)
>         $(STRIP) $(LIBNAME).dylib
>         $(INSTALL) $(LIBNAME).dylib $(DEST)/$(LIBNAME).$(VERSION).dylib
>         cd $(DEST); $(SYMLINK) $(LIBNAME).$(VERSION).dylib $(LIBNAME).dylib
>         cd $(DEST); $(SYMLINK) $(LIBNAME).$(VERSION).dylib $(LIBNAME).1.dylib
> endif
> 
> uninstall:
>         $(RM) $(DEST)/$(LIBNAME).so* \
>                 $(DEST)/$(LIBNAME)*.dylib
> 
> clean:
>         $(RM) $(LIBNAME)*.o \
>                 $(LIBNAME)*.so \
>                 $(LIBNAME)*.dylib \
>                 $(LIBNAME)*.dll
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
> 


Já compilei aqui, espere só um instante que já mando o patch.


Mais detalhes sobre a lista de discussão freebsd