Use PICFLAG instead of hard coding -fPIC.
This commit is contained in:
parent
3016ba4703
commit
54a86f4f6e
|
@ -688,7 +688,7 @@ SK_DUMMY_LIBRARY=@SK_DUMMY_LIBRARY@
|
||||||
$(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $< -o $@
|
||||||
|
|
||||||
regress/misc/sk-dummy/sk-dummy.so: $(SK_DUMMY_OBJS)
|
regress/misc/sk-dummy/sk-dummy.so: $(SK_DUMMY_OBJS)
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -shared -o $@ $(SK_DUMMY_OBJS) \
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(PICFLAG) -shared -o $@ $(SK_DUMMY_OBJS) \
|
||||||
-L. -Lopenbsd-compat -lopenbsd-compat $(LDFLAGS_NOPIE) $(LIBS)
|
-L. -Lopenbsd-compat -lopenbsd-compat $(LDFLAGS_NOPIE) $(LIBS)
|
||||||
|
|
||||||
regress-binaries: regress-prep $(LIBCOMPAT) \
|
regress-binaries: regress-prep $(LIBCOMPAT) \
|
||||||
|
|
Loading…
Reference in New Issue