Skip to content

Commit f370dfd

Browse files
authored
Merge pull request #441 from k-okada/fix_blhc
2 parents 30dca5a + 7a66b46 commit f370dfd

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

lisp/comp/comp.l

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,14 @@
212212
initcodes ;initialize codes in "eusmain"
213213
flets
214214
unwind-frames ;frames need to unwound when jumps
215+
symstr
215216
)))
217+
(defvar *compiler-symid* 0)
216218

217219
(eval-when (load eval)
218220
(defmethod compiler
219221
(:genlabel (head &optional (suffix ""))
220-
(concatenate string (string (gensym head)) suffix))
222+
(format nil "~A~A~A~A" symstr head (incf *compiler-symid*) suffix))
221223
(:gencname-tail
222224
(&rest lnames)
223225
;; NOTE: Deprecated. Use lisp::gencname-tail instead. (2017/10/19 furushchev)
@@ -1226,6 +1228,7 @@
12261228
(verbose *verbose*)
12271229
(entry (lisp::gencname-tail (pathname-name file)))
12281230
(o))
1231+
(setq symstr (subseq entry 0 8))
12291232
(if (and (integerp c-optimize)
12301233
(> c-optimize 0)
12311234
;; (not (member :gcc *features*))
@@ -1429,7 +1432,8 @@
14291432
(setq trans (instantiate translator)
14301433
idtable (instance identifier-table :init)
14311434
scope 0
1432-
closure-level 0)
1435+
closure-level 0
1436+
symstr "")
14331437
self)
14341438
) ; defmethod
14351439
) ; eval-when

lisp/image/jpeg/makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ endif
2828
else
2929
CC += -fPIC
3030
endif
31+
else
32+
CC += -fPIC
3133
endif
3234
ifeq ($(ARCHDIR), Darwin)
3335
CC += -I/opt/local/lib/jpeg6b/include -I/opt/local/include
@@ -42,7 +44,7 @@ LIBDIR=$(EUSDIR)/$(ARCH)/lib
4244
OBJDIR=$(EUSDIR)/$(ARCH)/obj
4345
OBJFILES= $(OBJDIR)/jpegmemcd.o $(OBJDIR)/jmemsrc.o $(OBJDIR)/jmemdst.o
4446
$(LIBDIR)/jpegmemcd.$(LSFX): $(OBJFILES)
45-
$(LD) $(LDFLAGS) -o $(LIBDIR)/jpegmemcd.$(LSFX) $(OBJDIR)/jpegmemcd.o $(OBJDIR)/jmemsrc.o $(OBJDIR)/jmemdst.o -ljpeg
47+
$(LD) -fPIC $(LDFLAGS) -o $(LIBDIR)/jpegmemcd.$(LSFX) $(OBJDIR)/jpegmemcd.o $(OBJDIR)/jmemsrc.o $(OBJDIR)/jmemdst.o -ljpeg
4648

4749
$(OBJDIR)/jpegmemcd.o: jpegmemcd.c
4850
$(CC) $(CFLAGS) -c -o $@ $^

0 commit comments

Comments
 (0)