Fix build for ELF.

PR:		9284
Submitted by:	maintainer
This commit is contained in:
Steve Price 1999-01-05 01:12:01 +00:00
parent b1b5340bed
commit d1c4804841
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=15838
2 changed files with 43 additions and 3 deletions

View File

@ -3,7 +3,7 @@
# Date created: 22 Mar 1997
# Whom: CHOI Junho <junker@jazz.snu.ac.kr>
#
# $Id: Makefile,v 1.9 1998/10/16 02:04:09 jseger Exp $
# $Id: Makefile,v 1.10 1998/10/25 19:29:32 fenner Exp $
#
DISTNAME= hanterm-xf-p15
@ -13,8 +13,6 @@ MASTER_SITES= http://pseudo.snu.ac.kr/~hwang/
MAINTAINER= junker@jazz.snu.ac.kr
BROKEN_ELF= yes
RUN_DEPENDS= ${PREFIX}/lib/X11/fonts/misc/johabm16.pcf.gz:${PORTSDIR}/korean/johabfonts
USE_X_PREFIX= yes

View File

@ -0,0 +1,42 @@
*** configure.orig Sat Aug 1 10:14:54 1998
--- configure Sat Jan 2 00:45:20 1999
***************
*** 2289,2295 ****
# It would also be nice to do this for all -L options, not just this one.
if test -n "$x_libraries"; then
! X_LIBS="$X_LIBS -L$x_libraries"
# For Solaris; some versions of Sun CC require a space after -R and
# others require no space. Words are not sufficient . . . .
case "`(uname -sr) 2>/dev/null`" in
--- 2289,2298 ----
# It would also be nice to do this for all -L options, not just this one.
if test -n "$x_libraries"; then
! case "${PORTOBJFORMAT}" in
! elf) X_LIBS="$X_LIBS -L$x_libraries -rpath $x_libraries" ;;
! *) X_LIBS="$X_LIBS -L$x_libraries" ;;
! esac
# For Solaris; some versions of Sun CC require a space after -R and
# others require no space. Words are not sufficient . . . .
case "`(uname -sr) 2>/dev/null`" in
***************
*** 2824,2830 ****
# Check for libraries that X11R6 Xt/Xaw programs need.
ac_save_LDFLAGS="$LDFLAGS"
! test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
# check for ICE first), but we must link in the order -lSM -lICE or
# we get undefined symbols. So assume we have SM if we have ICE.
--- 2827,2836 ----
# Check for libraries that X11R6 Xt/Xaw programs need.
ac_save_LDFLAGS="$LDFLAGS"
! test -n "$x_libraries" && case "${PORTOBJFORMAT}" in
! elf) LDFLAGS="$LDFLAGS -L$x_libraries -rpath $x_libraries" ;;
! *) LDFLAGS="$LDFLAGS -L$x_libraries" ;;
! esac
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
# check for ICE first), but we must link in the order -lSM -lICE or
# we get undefined symbols. So assume we have SM if we have ICE.