aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/port/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/port/Makefile b/src/port/Makefile
index 4e3a8edd3a1..0225b397a30 100644
--- a/src/port/Makefile
+++ b/src/port/Makefile
@@ -53,8 +53,7 @@ libpgport.a: $(OBJS)
$(AR) $(AROPT) $@ $^
# thread.o needs PTHREAD_CFLAGS (but thread_srv.o does not)
-thread.o: thread.c
- $(CC) $(CFLAGS) $(CPPFLAGS) $(PTHREAD_CFLAGS) -c $<
+thread.o: CFLAGS+=$(PTHREAD_CFLAGS)
#
# Server versions of object files