Skip to content

Commit 4c5eb2c

Browse files
committed
Modify Solaris compiler build rules to use the cpp preprocessor, the the
x86 file.
1 parent 83b692d commit 4c5eb2c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/backend/port/Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# be converted to Method 2.
1414
#
1515
# IDENTIFICATION
16-
# $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.22 2006/01/05 03:01:35 momjian Exp $
16+
# $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.23 2006/04/28 17:09:16 momjian Exp $
1717
#
1818
#-------------------------------------------------------------------------
1919

@@ -48,14 +48,20 @@ win32.dir:
4848
$(MAKE) -C win32 all
4949

5050
tas.o: tas.s
51+
ifeq ($(PORTNAME), solaris)
52+
# preprocess assembler file with cpp, used by x86
53+
$(CC) $(CFLAGS) -c -P $<
54+
mv $*.i $*_cpp.s
55+
$(CC) $(CFLAGS) -c $*_cpp.s -o $@
56+
else
5157
$(CC) $(CFLAGS) -c $<
58+
endif
5259

5360
# IPC test program
5461
ipc_test: ipc_test.o pg_sema.o pg_shmem.o
5562
$(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $^ $(LIBS) -o $@
5663

5764
distclean clean:
58-
rm -f SUBSYS.o $(OBJS) ipc_test ipc_test.o
65+
rm -f SUBSYS.o $(OBJS) ipc_test ipc_test.o tas_cpp.s
5966
$(MAKE) -C darwin clean
6067
$(MAKE) -C win32 clean
61-

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy