Lay out the studs in both sections of the wall to provide a nailing surface on the inside face. If you are butting a 3 1/2-inch-thick wall against the face of another wall at its end, install a stud so that its edges fall at 3 1/2 to 5 inches from the end of the wall. This stud will serve as the nailing surface for the edge of the drywall on that wall.
Secure the two walls by nailing them together. Assume that the wall that extends all the way to the corner is wall No. 1 and the wall that butts into it is wall No. 2. Drive nails through the end stud of wall No. 2 so they are driven into the studs of wall No. 1. This secures the walls together and makes them both much sturdier.
Apply exterior sheathing onto wall No. 2 first, so that it extends over the end of wall No. 1. This helps to further bind the two walls together. When you apply sheathing to wall No. 1, line up its edge with the face of the sheathing on wall No. 2.