Browse Source

Fixed standalone compilation

Since I'm maintaining RPMs of the pEp framework I noticed problems
during installation and usage.

Now it's finally fixed
master
David Lanzendörfer 3 months ago
parent
commit
aeb438f9eb
2 changed files with 6 additions and 2 deletions
  1. +5
    -1
      Makefile.conf
  2. +1
    -1
      pEpMIME/Makefile

+ 5
- 1
Makefile.conf View File

@ -65,12 +65,15 @@ endif
# Filename of the pEpMIME library, in case of being built
ifeq ($(BUILD_FOR),OS/390)
PEP_MIME_TARGET=libpEpMIME.so
PEP_MIME_SONAME=libpEpMIME.so
PEP_MIME_CPPFLAGS==-W "l,xplink,dll" -W "c,float(ieee),xplink,dll,exportall"
else ifeq ($(BUILD_FOR),Linux)
PEP_MIME_TARGET=libpEpMIME.so.1.0.0
PEP_MIME_TARGET=libpEpMIME.so
PEP_MIME_SONAME=libpEpMIME.so.1.0.0
PEP_MIME_CPPFLAGS=-Wl,-soname=libpEpMIME.so.1.0.0 -shared
else ifeq ($(BUILD_FOR),Darwin)
PEP_MIME_TARGET=libpEpMIME.dylib
PEP_MIME_SONAME=libpEpMIME.dylib
PEP_MIME_CPPFLAGS=""
endif
@ -380,6 +383,7 @@ ifndef PEP_MIME_SRC
$(error "Compiling with the PEP_MIME option set requires the value of PEP_MIME_SRC to be set to the source directory for libpEpMIME")
else
CPPFLAGS+=-DPEP_BUILTIN_MIME
LDFLAGS+=-L../pEpMIME/
ifneq ($(BUILD_ON),OS/390)
LDLIBS+=-lstdc++
endif


+ 1
- 1
pEpMIME/Makefile View File

@ -99,7 +99,7 @@ srcclean:
install: lib
install -d $(DESTDIR)$(LIBDIR)
install -m644 -t $(DESTDIR)$(LIBDIR) libpEpMIME.a
install -m755 -t $(DESTDIR)$(LIBDIR) $(PEP_MIME_TARGET)
install -m755 -T $(PEP_MIME_TARGET) $(DESTDIR)$(LIBDIR)/$(PEP_MIME_SONAME)
uninstall:
rm $(DESTDIR)$(PREFIX)/lib/libpEpMIME.a


Loading…
Cancel
Save