View Single Post
  #2   (View Single Post)  
Old 25th November 2008
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102

I am not 100% sure what are you trying to accomplish but you should start by reading Normally compiler optimization for software which one tries to port to OpenBSD is done by careful reading of the output of

make build
and then properly adjusting /usr/obj/portname/Makefile (or file and generating patches.

I am not coding on regular basis so I would have hard time to help you further with compiler optimization. If you are trying to code new application using gcc on OpenBSD you should probably read man pages for gcc. There are quite a few knobs that you can turn of and on. (I also do not use C++ as it is against my religion).
If you are trying just to port software to OpenBSD start by reading documentation from OpenBSD web-site. In particular you can find magic point presentation how to create an elementary port but your question is little bit deeper than that.

Last edited by Oko; 25th November 2008 at 03:49 AM.
Reply With Quote