Per #15 and mailing list, remove “-lXp” from libs

An old Makefile comment, also removed here, claims “some Motif libraries
use the printing frame buffer and so need -lXp” — but the library no
longer exists on modern systems, and printing works fine without it.
This commit is contained in:
Brandon Rhodes 2021-06-24 07:38:46 -04:00
parent c17ae5e31d
commit 74142a151a
2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,6 @@
# Sample compile and link flags for a few systems. Find your system or similar
# and uncomment as required. The default is for linux or Mac OS X systems.
# The only real challenge usually is to set the MOTIFI and MOTIFL macros.
# Note that some Motif libraries use the printing frame buffer and so need -lXp.
# The basic idea to build XEphem is to first go compile the libraries in
# ../../lib* then come back here and compile and link all the *.c files into
@ -34,7 +33,7 @@ CC = gcc
CLDFLAGS = -g
CFLAGS = $(LIBINC) $(CLDFLAGS) -O2 -Wall -I$(MOTIFI) -I/opt/X11/include
LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) -L/opt/X11/lib
XLIBS = -lXm -lXp -lXt -lXext -lXmu -lX11
XLIBS = -lXm -lXt -lXext -lXmu -lX11
LIBS = $(XLIBS) $(LIBLIB) -lm
# static linking on Apple using X11 libs from ports

View File

@ -7,7 +7,6 @@
# idea to build xephem is to first go compile the libraries in ../../libastro,
# ../../libip, ../../liblilxml and ../../libjpegd then come back here and
# compile and link all the *.c files into one executable, xephem.
# Note: some motif libraries now use the printing frame buffer and need -lXp
# -I and -L flags to find required supporting libraries
@ -25,7 +24,7 @@ CC = cc
#CLDFLAGS = -ffast-math
CFLAGS = $(LIBINC)
LDFLAGS =
#XLIBS = -lXm -lXp -lXt -lXext -lSM -lICE -lXmu -lX11
#XLIBS = -lXm -lXt -lXext -lSM -lICE -lXmu -lX11
#LIBS = $(XLIBS) $(LIBLIB) -lm
# MKS Enterprise toolkit