← Back to team overview

linux-traipu team mailing list archive

[Bug 723667] Re: Use PCH

 

In a Hello World app, this suffices:
BUILT_SOURCES = config.h.gch

config.h.gch: config.h
	${CXXCOMPILE} -o $@ $<

But in Drizzle this doesn't work.
It seems the GCC invocations don't match and the PCH is ignored.

PCH compile:
g++ -DHAVE_CONFIG_H   -I. -I. -g   -pipe -std=gnu++98  -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Werror -pedantic -Wall -Wundef -Wshadow  -fdiagnostics-show-option -floop-parallelize-all -fno-strict-aliasing -Wno-strict-aliasing -Wextra -Wformat -Wno-format-nonliteral -Wno-format-security -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wno-long-long  -Wmissing-declarations -Wframe-larger-than=32768 -Wno-redundant-decls      -c config.h

Normal compile:
  CXX    drizzled/message/drizzled_message_libdrizzledmessage_la-statement_transform.lo

Monty, could you look into this?

BTW, why does it use .lo instead of .o?

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/723667

Title:
  Use PCH

Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
  Confirmed

Bug description:
  To decrease build times, A PCH should be used. A PCH (pch.h.gch) can be build with "g++ pch.h". Since I've no experience with the build system, could someone help me to add this bit?
  A depedency on pch.h.gch should also be added to config.h.

  http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/723667/+subscriptions