From f61769ccba190370311aaf9fa652ab1e873ce293 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 14 Mar 2004 02:23:53 +0000 Subject: Fix build on amd64 (shared library objects must be compiled with -fPIC) --- korean/uniksc/files/patch-makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'korean/uniksc') diff --git a/korean/uniksc/files/patch-makefile b/korean/uniksc/files/patch-makefile index c7fe07f427f..ee846b1523e 100644 --- a/korean/uniksc/files/patch-makefile +++ b/korean/uniksc/files/patch-makefile @@ -1,19 +1,24 @@ ---- Makefile.orig Mon Oct 9 07:38:51 2000 -+++ Makefile Sun Oct 15 01:21:27 2000 -@@ -1,8 +1,8 @@ +--- Makefile.orig Sun Oct 8 15:38:51 2000 ++++ Makefile Sat Mar 13 18:23:29 2004 +@@ -1,8 +1,9 @@ -CC = gcc +#CC = gcc -CFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -I. +FLAGS = ${CFLAGS} -I. ++LIBFLAGS = $(FLAGS) -fPIC -PREFIX=/usr/local +#PREFIX=/usr/local SRCS = ksc5601_utf16.c \ ksc5601_utf16_table.c \ -@@ -15,24 +15,24 @@ - $(CC) -c $(FLAGS) -o $*.o $< +@@ -12,27 +13,27 @@ + OBJS = $(SRCS:.c=.o) + + .c.o: +- $(CC) -c $(FLAGS) -o $*.o $< ++ $(CC) -c $(LIBFLAGS) -o $*.o $< all: $(OBJS) - $(CC) -shared -Wl,-soname -Wl,libuniksc.so.0 -o libuniksc.so.0.9 $(OBJS) -- cgit